This file contains hidden or 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 hidden or 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 = 'utilisateur@votre-serveur.com'; |
This file contains hidden or 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 hidden or 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`) | |
| ); |
NewerOlder