当前位置: 首页>>代码示例>>PHP>>正文


PHP pmb_mysql_close函数代码示例

本文整理汇总了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);
    }
}
?>
开发者ID:hogsim,项目名称:PMB,代码行数:31,代码来源:install_rep.php

示例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);
开发者ID:hogsim,项目名称:PMB,代码行数:30,代码来源:select.php

示例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;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:24,代码来源:pmbesIndex.class.php


注:本文中的pmb_mysql_close函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。