| Server IP : 213.186.33.2 / Your IP : 216.73.216.39 Web Server : Apache System : Linux webm005.cluster102.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : symetry ( 21728) PHP Version : 8.2.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/s/y/m/symetry/www/ARCHIVES/application/ |
Upload File : |
<?php
/* Report all errors directly to the screen for simple diagnostics in the dev environment */
error_reporting(E_ALL | E_STRICT);
ini_set('display_startup_errors', 0);
ini_set('display_errors', 0);
/* Add the Zend Framework library to the include path so that we can access the ZF classes */
set_include_path($dir.'library' . PATH_SEPARATOR . get_include_path());
set_include_path($dir.'application/models' . PATH_SEPARATOR . get_include_path());
/* Set the default timezone */
//date_default_timezone_set('Europe/Paris');
// Use this to be sure that the include path is correct
// echo get_include_path();
/* Set up autoload so we don't have to explicitely require each Zend Framework class */
require_once "Zend/Loader.php";
require_once("Zend/Translate.php");
/* Include Zend Auth */
require_once("Zend/Auth.php");
Zend_Loader::registerAutoload();
/* Get configuration from file */
if(LOCAL === 1)
{
$config = new Zend_Config_Ini($dir.'application/config_local.ini', 'general');
}
else
{
$config = new Zend_Config_Ini($dir.'application/config_dist.ini', 'general');
}
$registry = Zend_Registry::getInstance();
$registry->set('config', $config);
$registry->set('root', $_SERVER["DOCUMENT_ROOT"].'/');
/* Initialize database access */
$db = Zend_Db::factory($config->db);
Zend_Db_Table::setDefaultAdapter($db);
Zend_registry::set('db',$db);
/* Initialize translation engine */
$french = array('SkipIntro' => 'passer l\'intro',
'Title' => 'Symetry - Architectes',
'Profile' => 'Profil',
'Projects' => 'Projets',
'References' => 'Références',
'Contact' => 'Contact',
'Team' => 'Equipe',
'Submit' => 'Envoyer',
'Name' => 'Nom',
'FirstName' => 'Prénom',
'Company'=>'Société',
'Email' => 'Email',
'Subject' => 'Sujet',
'Message' => 'Message',
'Text' => 'Texte',
'ContactThanks' => 'Merci pour votre demande',
'AccessMap' => 'Plan d\'accès',
'Username'=>'Nom d\'utilisateur',
'Password'=>'Mot de passe',
'LoginMsg'=>'Veuillez vous authentifier',
'isEmpty'=>'Ce champ est requis. Veuillez le remplir svp',
'stringLengthTooShort'=>'La longueur de ce champ est trop courte',
'stringLengthTooLong'=>'La longueur de ce champ est trop longue',
'emailAddressInvalid'=>'L\'adresse email encodée n\'est pas correcte',
'UserNameRequired'=>'Le nom d\'utilisateur est requis',
'LoginFailed'=>'Nom d\'utilisateur ou mot de passe incorrect',
'LoginPage'=>'Veuillez vous authentifier',
'AddImageInProject'=>'Ajouter une image au projet',
'Save'=>'Enregistrer',
'SendImageInProject'=>'Ajouter',
'ModProject'=>'Modifier le projet',
'CurrentImageInProject'=>'Images du projet',
'DeleteConfirm'=>'Etes-vous sûr de vouloir supprimer le projet',
'DelProject'=>'Supprimer un projet',
'Yes'=>'Oui',
'No'=>'Non',
'AddProject'=>'Ajouter un projet',
'Add'=>'Ajouter',
'Street'=>'Rue',
'Number'=>'Numéro',
'Bus'=>'Boite',
'Cp'=>'Cp',
'City'=>'Ville',
'DelReference'=>'Supprimer une référence',
'AddReference'=>'Ajouter une référence',
'ModReference'=>'Modifier une référence',
'ShortDescription'=>'Description courte',
'LongDescription'=>'Description Complète',
'ProjectDate'=>'Date du projet',
'dateInvalid'=>'Date non valide',
'dateFalseFormat'=>'Date non valide',
'DeleteConfirmTags'=>'Etes-vous sûr de vouloir supprimer le tag',
'LegalInformation'=>'Mentions légales',
'NoResults'=>'Aucun résultat',
'FineSearch' => 'Recherche détaillée',
'Category'=>'Categorie',
'ImageUploadInstructions'=>'Vous ne pouvez envoyer que des images au format JPEG (en RVB) de taille maximale 800x800',
'Houses'=>'logements',
'Desk'=>'bureaux',
'Other'=>'autres',
'Actually'=>'en cours',
'FotoCredits'=>'Photos by Fabien de Cugnac, Cyclic, Be Home, Symetry Architects, Yvan Glavie, Carol Kohen',
'Folder'=>'Dossier',
'Project'=>'Projet',
'Program'=>'Programme',
'Client'=>'Client',
'Collaboration'=>'En collaboration avec',
'Press'=>'Parutions'
);
$translate = new Zend_Translate('array', $french, 'fr');
Zend_registry::set('translate',$translate);
Zend_Validate_Abstract::setDefaultTranslator($translate);
/* smtp configuration */
require_once 'Zend/Mail/Transport/Smtp.php';
$tr = new Zend_Mail_Transport_Smtp($config->smtp->server);
Zend_Mail::setDefaultTransport($tr);
/* template engine */
/* Set the singleton instance of the front controller */
$frontController = Zend_Controller_Front::getInstance();
/* Disable error handler so it doesn't intercept all those errors we enabled above */
$frontController->throwExceptions(true);
/* Point the front controller to your action controller directory */
$frontController->setControllerDirectory($dir.'application/controllers');
/* Initialize logger */
$writer = new Zend_Log_Writer_Stream($dir.'logs/log.txt');
$formatter = new Zend_Log_Formatter_Simple('[ %timestamp% ] [ %priorityName% ]: %message%' . PHP_EOL);
$writer->setFormatter($formatter);
// attach the writer to the logger
$logger = new Zend_Log($writer);
/* Re-define the timestamp format for the default logger */
$logger->setEventItem('timestamp', date('m-d-Y H:i:s', time()));
Zend_registry::set('logger',$logger);
/* Add layout support */
Zend_Layout::startMvc(array('layoutPath'=>$dir.'application/layouts'));
/* deslash */
function d($s)
{
return str_replace("\'","'", $s);
}
/* OK, do your stuff, front controller */
$frontController->dispatch();