session_begin(); $auth->acl($user->data); $user->setup(); // Initialisation des fichiers de langue $user->add_lang('df/df_commons'); // Destruction de la session en cas de nouvelle demande if (isset($_GET['logout'])) { $user->session_kill(); $user->session_begin(); } // Vérification de la présence de variables if (isset($_POST['login'])) { $username = request_var('username', '', true); $password = request_var('password', '', true); $autologin = (!empty($_POST['autologin'])) ? true : false; $viewonline = (!empty($_POST['viewonline'])) ? 0 : 1; $admin = 0; $result = $auth->login($username, $password, $autologin, $viewonline, $admin); if ($result['status'] != LOGIN_SUCCESS) { $err = $user->lang[$result['error_msg']]; if ($result['error_msg'] == 'LOGIN_ERROR_USERNAME' || $result['error_msg'] == 'LOGIN_ERROR_PASSWORD') { $err = (!$config['board_contact']) ? sprintf($user->lang[$result['error_msg']], '', '') : sprintf($user->lang[$result['error_msg']], '', ''); } } else { $auth->acl($user->data); } } if(is_numeric($_GET['id'])) { // Onglets switch($_GET['onglet']) { case cours : $onglet = "cours"; break; case asso : $onglet = "asso"; break; case commentaires : $onglet = "commentaires"; break; default: $onglet = "cours"; break; } // Connexion à la base de données $base = 5; //djembefola5 include ($df_root_path.'includes/mysql-connect.php'); $retour = mysql_query("SELECT * FROM cours_djembe WHERE id=".mysql_real_escape_string($_GET['id'])); $cours = mysql_fetch_array($retour) or die (''); $retour2 = mysql_query("SELECT * FROM cours_associations WHERE id=".$cours['cours_asso_id']); $asso = mysql_fetch_array($retour2); $retour3 = mysql_query("SELECT * FROM cours_djembe WHERE cours_asso_id=".$asso['id']); $new_views = $cours['cours_views']+1; // Ajout d'une visualisation à la page cours $reqinsert="UPDATE cours_djembe SET cours_views = ". $new_views ." WHERE id = ". mysql_real_escape_string($_GET['id']) . "; "; mysql_query($reqinsert) or die(''); mysql_close(); } else { ?>data['user_id']." "; mysql_query($reqinsert) or die(''); // fermeture de la connexion // mysql_close(); // Inclusion du variateur automatique de style include ($df_root_path."includes/style-switcher.php"); // Nettoyage du titre et description (suppression des retours chariots, suppressions des doubles quotes et des balises BBCodes) $string_titre = Securite::html($cours['cours_titre']); $string_desc = Securite::html($cours['cours_description']); $patterns = array(); $patterns[0] = '/"/'; $patterns[1] = '/\n/'; $patterns[2] = '`\[(.?)]`si'; // Suppression des balises BBCodes ouvrantes $patterns[3] = '`\[\/(.?)]`si'; // Suppression des balises BBCodes fermantes $replacements = array(); $replacements[3] = ''; $replacements[2] = ''; $replacements[1] = ''; $replacements[0] = ''; $titre_slashes = preg_replace($patterns, $replacements, $string_titre); $titre = stripslashes($titre_slashes); $description_slashes = preg_replace($patterns, $replacements, $string_desc); $description = stripslashes($description_slashes); // Fonction stripAccents : nécessaire pour l'adresse des Google MAPS function stripAccents($string) { return strtr($string,'àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ', 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY'); } ?>
Notice: Undefined variable: df_root_path in /public_html/cours_djembe/cours_djembe.php on line 146

Warning: include(includes/charset.php): failed to open stream: No such file or directory in /public_html/cours_djembe/cours_djembe.php on line 146

Warning: include(includes/charset.php): failed to open stream: No such file or directory in /public_html/cours_djembe/cours_djembe.php on line 146

Warning: include(): Failed opening 'includes/charset.php' for inclusion (include_path='.:/opt/php56/lib/php') in /public_html/cours_djembe/cours_djembe.php on line 146
<? echo $titre;?> - www.djembefola.fr
Navigation rapide : www.djembefola.fr'; ?> » Cours de djembé et danse';?> » ' . $titre . '';?>