This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `Message` ( | |
`id` int unsigned NOT NULL AUTO_INCREMENT, | |
`toUserId` int unsigned NOT NULL, | |
`message` text NOT NULL, | |
`new` tinyint NOT NULL DEFAULT '1', | |
PRIMARY KEY (`id`), | |
KEY `toUserId` (`toUserId`) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS `User` ( | |
`id` int unsigned NOT NULL AUTO_INCREMENT, | |
`status` tinyint unsigned NOT NULL, | |
`login` varchar(30) NOT NULL, | |
`password` tinytext NOT NULL, | |
`email` varchar(128) NOT NULL, | |
`firstName` varchar(128) NOT NULL, | |
`lastName` varchar(128) NOT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `login` (`login`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Données de connexion à la base de données | |
$MYSQLhost = 'localhost'; | |
$MYSQLdb = 'tlb_db'; | |
$MYSQLuid = 'tlb_db_uid'; | |
$MYSQLpwd = 'motdepasse'; | |
// Données de connexion au serveur FTP | |
$ftpServer = 'ftp.votre-serveur.com'; | |
$ftpUser = '[email protected]'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php public function actionAdmin() { | |
$model = new Model('search'); | |
$model->unsetAttributes(); | |
if (isset($_GET['Model'])) { | |
$model->attributes = $_GET['Model']; | |
} | |
if (isset($_GET['export'])) { | |
$production = 'export'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="DivToScroll" style="height:300px;width:600px"> | |
<!-- Il faut que le contenu de ce div soit relativement large et/ou haut pour le faire défiler --> | |
<div style="height:1000px;width:2000px"></div> | |
</div> | |
<script src="jquery.min.js"></script> | |
<script src="enscroll.pack.js"></script> | |
<script> | |
$(function($) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="jquery.simplyscroll.css" type="text/css"> | |
<a href="#" id="goBack">Défiler vers l’arrière</a> | |
<a href="#" id="pause">Mettre en pause</a> | |
<a href="#" id="goFwd">Défiler vers l’avant</a> | |
<ul id="scroller"> | |
… | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="nouislider.fox.css" type="text/css"> | |
<div id="DivToTransform" class="noUiSlider horizontal"></div> | |
<div id="#Display"></div> | |
<script src="zepto.min.js"></script> | |
<script src="zepto.data.pack.js"></script> | |
<script src="nouislider.min.js"></script> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="jquery-ui.css" type="text/css"> | |
<select id="SelectToAutoComplete"> | |
… | |
</select> | |
<script src="jquery.min.js"></script> | |
<script src="jquery-ui-autocomplete.js"></script> | |
<script src="jquery.select-to-autocomplete.min.js"></script> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* ************************************************************************** *\ | |
* Code HTML et PHP du site monopage Bidaya * | |
* Billet de blog : http://tellibus.com/blog/101 * | |
* Démo : http://tellibus.com/bidaya/index-02.php * | |
* CC-BY-SA tellibus.com * | |
\* ************************************************************************** */ | |
// DetectMobileBrowsers.com - Version du 09/09/2013 | |
$userAgent = $_SERVER['HTTP_USER_AGENT']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* ************************************************************************** *\ | |
* Code HTML et PHP du site monopage Bidaya * | |
* Billet de blog : http://tellibus.com/blog/102 * | |
* Démo : http://tellibus.com/bidaya/index-03.php * | |
* CC-BY-SA tellibus.com * | |
\* ************************************************************************** */ | |
// DetectMobileBrowsers.com - Version du 09/09/2013 | |
$userAgent = $_SERVER['HTTP_USER_AGENT']; |
OlderNewer