本文整理汇总了PHP中pmb_mysql_close函数的典型用法代码示例。如果您正苦于以下问题:PHP pmb_mysql_close函数的具体用法?PHP pmb_mysql_close怎么用?PHP pmb_mysql_close使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pmb_mysql_close函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: md5
}
}
//Mise à jour du mot de passe admin
@pmb_mysql_query("UPDATE users SET pwd=PASSWORD('admin'), user_digest = '" . md5("admin" . ":" . md5("http://SERVER/DIRECTORY/") . ":" . "admin") . "' WHERE username='admin'", $link);
@rename("./install.php", "./noinstall.php");
@rename("./install_rep.php", "./noinstall_rep.php");
echo $msg_crea_30;
echo $msg_crea_31;
$query = "select valeur_param from parametres where type_param='pmb' and sstype_param='bdd_version' ";
$req = pmb_mysql_query($query, $link);
$data = pmb_mysql_fetch_array($req);
$version_pmb_bdd = $data['valeur_param'];
if ($version_pmb_bdd != $pmb_version_database_as_it_should_be) {
echo str_replace("!!pmb_version!!", $version_pmb_bdd, $msg_crea_control_version);
}
pmb_mysql_close($link);
} else {
print $msg_crea_32;
}
function del_fic_temp($dir)
{
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if (file_exists($dir . $file) && preg_match("/^XML.*?\\.tmp\$/i", $file)) {
@unlink($dir . $file);
}
}
closedir($dh);
}
}
?>
示例2: pmb_mysql_close
break;
case 'origine':
include './selectors/origine.inc.php';
break;
case 'synonyms':
include './selectors/sel_word.inc.php';
break;
case 'titre_uniforme':
if (!(SESSrights & AUTORITES_AUTH) || $caller == "search_form") {
$bt_ajouter = "no";
}
include './selectors/titre_uniforme.inc.php';
break;
case 'notes':
include './selectors/notes.inc.php';
break;
case 'ontology':
include './selectors/ontology.inc.php';
break;
case 'authperso':
include './selectors/authperso.inc.php';
break;
case 'abts':
include './selectors/abts.inc.php';
break;
default:
print "<script type='text/javascript'>\n\t\t\twindow.close();\n\t\t</script>";
break;
}
pmb_mysql_close($dbh);
示例3: indexDocnum
function indexDocnum()
{
global $msg, $dbh, $charset, $PMBusername;
if (SESSrights & ADMINISTRATION_AUTH) {
$result .= "<h3>" . htmlentities($msg["docnum_reindexation"], ENT_QUOTES, $charset) . "</h3>";
pmb_mysql_query("set wait_timeout=3600");
$requete = "select explnum_id as id from explnum order by id";
$res_explnum = pmb_mysql_query($requete, $dbh);
if (pmb_mysql_num_rows($res_explnum)) {
while ($explnum = pmb_mysql_fetch_object($res_explnum)) {
pmb_mysql_close($dbh);
$dbh = connection_mysql();
$index = new indexation_docnum($explnum->id);
$index->indexer();
}
}
$explnum = pmb_mysql_query("SELECT count(1) FROM explnum", $dbh);
$count = pmb_mysql_result($explnum, 0, 0);
$result .= $count . " " . htmlentities($msg['docnum_reindex_expl'], ENT_QUOTES, $charset);
} else {
$result .= sprintf($msg["planificateur_rights_bad_user_rights"], $PMBusername);
}
return $result;
}