return false;\r
}
+ function field_exists($table_name, $field_name){
+ if(!$this->link) $this->connect($this->host, $this->base, $this->user, $this->password);
+ $sql = "SHOW COLUMNS FROM `".$table_name."` LIKE ".$field_name;
+ $rst = $this->query($sql);
+ $exists = false;
+ $v_rst = $this->fetch_assoc($rst);
+ if($v_rst) $exists = true;
+ $this->free_result($rst);
+ return $exists;
+ }
+
function query($query_string){\r
if(!$this->link) $this->connect($this->host, $this->base, $this->user, $this->password);\r
$result = @mysql_query($query_string, $this->link);\r
);
}
+ function field_exists($table_name, $field_name){
+ return $this->sgbd_impl->field_exists(
+ (
+ $prefix_codes = array_keys($this->env->bdd("table_prefix"))) ?
+ str_replace($prefix_codes, array_values($this->env->bdd("table_prefix")), $table_name)
+ : $table_name,
+ $field_name
+ );
+
+ }
+
function query($sql){
return $this->sgbd_impl->query(
($prefix_codes = array_keys($this->env->bdd("table_prefix"))) ?
"Vous êtes maintenant identifié en tant que ".$_POST['login']
);
}
- else $env->message("Idantifiants incorrects");
+ else $env->message("Identifiants incorrects");
}
function logout(&$env){
<script type="text/javascript" src="<?php echo $this->out_url("js/html5.js"); ?>"></script>\r
<![endif]-->
+ <script type="text/javascript"> mw_site_url = "<?php echo $this->path("web") ?>"; </script>
<?php foreach($this->js_files() as $js_file) : ?>
<script type="text/javascript" src="<?php echo $js_file; ?>"></script>
<?php endforeach; ?>
+<?php $data = $this->data(); if(($users_menu = $data->get_link("users")) && $users_menu["subs"]) : ?>
+
+<?php echo get_menu_ul($users_menu); ?>
+
+<?php endif; ?>
\ No newline at end of file