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


PHP Ecr_Log函数代码示例

本文整理汇总了PHP中Ecr_Log函数的典型用法代码示例。如果您正苦于以下问题:PHP Ecr_Log函数的具体用法?PHP Ecr_Log怎么用?PHP Ecr_Log使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了Ecr_Log函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: changemblock

function changemblock($title, $content)
{
    global $NPDS_Prefix;
    $title = stripslashes(FixQuotes($title));
    $content = stripslashes(FixQuotes($content));
    sql_query("UPDATE " . $NPDS_Prefix . "mainblock SET title='{$title}', content='{$content}'");
    global $aid;
    Ecr_Log("security", "ChangeMainBlock({$title}) by AID : {$aid}", "");
    Header("Location: admin.php?op=adminMain");
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:10,代码来源:mainblock.php

示例2: Admin_alert

function Admin_alert($motif)
{
    global $admin;
    setcookie("admin", "", 0);
    unset($admin);
    Ecr_Log("security", "auth.inc.php/Admin_alert : " . $motif, "");
    $Titlesitename = "NPDS";
    if (file_exists("meta/meta.php")) {
        include "meta/meta.php";
    }
    echo "</head>\n<body style=\"background-color: #FFFFFF;\">\n<br /><br /><br />";
    echo "<p align=\"center\" style=\"font-size: 14px; font-family: Tahoma, Arial; color: Red;\"><b>.: " . translate("Your IP is recorded") . " :.</b></p>\n";
    echo "</body>\n";
    echo "</html>\n";
    die;
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:16,代码来源:auth.inc.php

示例3: Admin_alert

function Admin_alert($motif)
{
    global $admin;
    setcookie('admin', '', 0);
    unset($admin);
    Ecr_Log('security', 'auth.inc.php/Admin_alert : ' . $motif, '');
    $Titlesitename = 'NPDS';
    if (file_exists("meta/meta.php")) {
        include "meta/meta.php";
    }
    echo '
      </head>
      <body>
         <br /><br /><br />
         <p style="font-size: 24px; font-family: Tahoma, Arial; color: red; text-align:center;"><strong>.: ' . translate("Your IP is recorded") . ' :.</strong></p>
      </body>
   </html>';
    die;
}
开发者ID:npds,项目名称:npds_dune,代码行数:19,代码来源:auth.inc.php

示例4: SendSite

function SendSite($yname, $ymail, $fname, $fmail, $asb_question, $asb_reponse)
{
    global $user;
    if (!$user) {
        //anti_spambot
        if (!R_spambot($asb_question, $asb_reponse, "")) {
            Ecr_Log('security', "Friend Anti-Spam : name=" . $yname . " / mail=" . $ymail, '');
            redirect_url("index.php");
            die;
        }
    }
    global $sitename, $nuke_url;
    $subject = translate("Interesting Site:") . " {$sitename}";
    $fname = removeHack($fname);
    $message = translate("Hello") . " {$fname} :\n\n" . translate("Your Friend") . " {$yname} " . translate("considered our site") . " {$sitename} " . translate("interesting and wanted to send it to you.") . "\n\n{$sitename} : <a href=\"{$nuke_url}\">{$nuke_url}</a>\n\n";
    include "signat.php";
    $fmail = removeHack($fmail);
    $subject = removeHack($subject);
    $message = removeHack($message);
    $yname = removeHack($yname);
    $ymail = removeHack($ymail);
    $stop = false;
    if (!$fmail || $fmail == '' || !preg_match('#^[_\\.0-9a-z-]+@[0-9a-z-\\.]+\\.+[a-z]{2,4}$#i', $fmail)) {
        $stop = true;
    }
    if (!$ymail || $ymail == '' || !preg_match('#^[_\\.0-9a-z-]+@[0-9a-z-\\.]+\\.+[a-z]{2,4}$#i', $ymail)) {
        $stop = true;
    }
    if (!$stop) {
        send_email($fmail, $subject, $message, $ymail, false, 'html');
    } else {
        $fname = '';
    }
    Header("Location: friend.php?op=SiteSent&fname={$fname}");
}
开发者ID:npds,项目名称:npds_dune,代码行数:35,代码来源:friend.php

示例5: adminhead

// Affichage
adminhead($f_meta_nom, $f_titre, $adminimg);
echo adm_translate("Optimisation effectuée ") . ' : ' . adm_translate("Gain total réalisé") . ' ' . $total_gain . ' Ko</br>';
echo $last_opti;
echo "<p>" . adm_translate("A ce jour, vous avez effectué ") . " " . $countopt . " optimisation(s) " . adm_translate(" et réalisé un gain global de ") . " " . $gainopt . " Ko.</p>\n";
echo '<table id="tad_opti" data-toggle="table" data-striped="true" data-show-toggle="true" data-mobile-responsive="true" data-icons="icons" data-icons-prefix="fa">
    <thead>
        <tr>
            <th data-sortable="true" align="center">' . adm_translate('Table') . '</th>
            <th align="center">' . adm_translate('Taille actuelle') . '</th>
            <th data-sortable="true" align="center">' . adm_translate('Etat') . '</th>
            <th align="center">' . adm_translate('Gain réalisable') . '</th>
        </tr>
    </thead>
    <tfoot>
        <tr>
            <td></td>
            <td></td>
            <td>' . adm_translate("Gain total réalisé") . ' : </td>
            <td>' . $total_gain . ' Ko</td>
        </tr>
    </tfoot>
    <tbody>' . "\n";
echo $li_tab_opti;
echo '
    </tbody>
    </table>';
adminfoot('', '', '', '');
global $aid;
Ecr_Log("security", "OptiMySql() by AID : {$aid}", "");
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:30,代码来源:optimysql.php

示例6: Add

function Add($title, $url, $name, $cat, $description, $email, $topicL, $asb_question, $asb_reponse)
{
    global $ModPath, $ModStart, $links_DB, $troll_limit, $anonymous, $user, $admin;
    if (!$user and !$admin) {
        //anti_spambot
        if (!R_spambot($asb_question, $asb_reponse, "")) {
            Ecr_Log("security", "Links Anti-Spam : url=" . $url, "");
            redirect_url("index.php");
            die;
        }
    }
    $result = sql_query("SELECT lid FROM " . $links_DB . "links_newlink");
    $numrows = sql_num_rows($result);
    if ($numrows >= $troll_limit) {
        error_head("alert-danger");
        echo translate("ERROR: This URL is already listed in the Database!") . "<br />";
        error_foot();
        exit;
    }
    global $user;
    if (isset($user)) {
        global $cookie;
        $submitter = $cookie[1];
    } else {
        $submitter = $anonymous;
    }
    if ($title == '') {
        error_head("alert-danger");
        echo translate("ERROR: You need to type a TITLE for your URL!") . "<br />";
        error_foot();
        exit;
    }
    if ($email == '') {
        error_head("alert-danger");
        echo translate("ERROR: Invalid email") . "<br />";
        error_foot();
        exit;
    }
    global $links_url;
    if ($url == '' and $links_url == 1) {
        error_head("alert-danger");
        echo translate("ERROR: You need to type a URL for your URL!") . "<br />";
        error_foot();
        exit;
    }
    if ($description == '') {
        error_head("alert-danger");
        echo translate("ERROR: You need to type a DESCRIPTION for your URL!") . "<br />";
        error_foot();
        exit;
    }
    $cat = explode('-', $cat);
    if (!array_key_exists(1, $cat)) {
        $cat[1] = 0;
    }
    $title = removeHack(stripslashes(FixQuotes($title)));
    $url = removeHack(stripslashes(FixQuotes($url)));
    $description = removeHack(stripslashes(FixQuotes($description)));
    $name = removeHack(stripslashes(FixQuotes($name)));
    $email = removeHack(stripslashes(FixQuotes($email)));
    sql_query("INSERT INTO " . $links_DB . "links_newlink VALUES (NULL, '{$cat['0']}', '{$cat['1']}', '{$title}', '{$url}', '{$description}', '{$name}', '{$email}', '{$submitter}', '{$topicL}')");
    error_head("alert-success");
    echo translate("We received your Link submission. Thanks!") . "<br />";
    echo translate("You'll receive and E-mail when it's approved.") . "<br />";
    error_foot();
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:66,代码来源:links-1.php

示例7: submitStory

function submitStory($subject, $story, $bodytext, $topic, $date_debval, $date_finval, $epur, $asb_question, $asb_reponse)
{
    global $user, $EditedMessage, $anonymous, $notify, $NPDS_Prefix;
    if ($user) {
        global $cookie;
        $uid = $cookie[0];
        $name = $cookie[1];
    } else {
        $uid = -1;
        $name = $anonymous;
        //anti_spambot
        if (!R_spambot($asb_question, $asb_reponse, "")) {
            Ecr_Log("security", "Submit Anti-Spam : name=" . $yname . " / mail=" . $ymail, "");
            redirect_url("index.php");
            die;
        }
    }
    $subject = removeHack(stripslashes(FixQuotes(str_replace("\"", "&quot;", strip_tags($subject)))));
    $story = removeHack(stripslashes(FixQuotes($story)));
    $bodytext = removeHack(stripslashes(FixQuotes($bodytext)));
    $result = sql_query("INSERT INTO " . $NPDS_Prefix . "queue VALUES (NULL, '{$uid}', '{$name}', '{$subject}', '{$story}', '{$bodytext}', now(), '{$topic}','{$date_debval}','{$date_finval}','{$epur}')");
    if (sql_last_id()) {
        if ($notify) {
            global $notify_email, $notify_subject, $notify_message, $notify_from;
            send_email($notify_email, $notify_subject, $notify_message, $notify_from, false, "text");
        }
        include 'header.php';
        echo '<h2>' . translate("Submit News") . '</h2>';
        echo '<p class="lead text-info">' . translate("Thanks for your submission.") . '</p>';
        include 'footer.php';
    } else {
        include 'header.php';
        echo sql_error();
        include 'footer.php';
    }
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:36,代码来源:submit.php

示例8: deleterblock

function deleterblock($id)
{
    global $NPDS_Prefix;
    sql_query("DELETE FROM " . $NPDS_Prefix . "rblocks WHERE id='{$id}'");
    global $aid;
    Ecr_Log("security", "DeleteRightBlock({$id}) by AID : {$aid}", "");
    Header("Location: admin.php?op=blocks");
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:8,代码来源:rightblocks.php

示例9: updateadmin

function updateadmin($chng_aid, $chng_name, $chng_email, $chng_url, $chng_radminfilem, $chng_radminsuper, $chng_pwd, $chng_pwd2, $temp_system_md5)
{
    global $NPDS_Prefix, $modu;
    if (!($chng_aid && $chng_name && $chng_email)) {
        Header("Location: admin.php?op=mod_authors");
    }
    // Gestion du fichier pour filemanager
    $result = sql_query("SELECT radminfilem,radminsuper FROM " . $NPDS_Prefix . "authors WHERE aid='{$chng_aid}'");
    list($ori_radminfilem, $ori_radminsuper) = sql_fetch_row($result);
    if ($ori_radminsuper and !$chng_radminsuper) {
        @unlink("modules/f-manager/users/" . strtolower($chng_aid) . ".conf.php");
    }
    if (!$ori_radminsuper and $chng_radminsuper) {
        @copy("modules/f-manager/users/modele.admin.conf.php", "modules/f-manager/users/" . strtolower($chng_aid) . ".conf.php");
    }
    if ($ori_radminfilem and !$chng_radminfilem) {
        @unlink("modules/f-manager/users/" . strtolower($chng_aid) . ".conf.php");
    }
    if (!$ori_radminfilem and $chng_radminfilem) {
        @copy("modules/f-manager/users/modele.admin.conf.php", "modules/f-manager/users/" . strtolower($chng_aid) . ".conf.php");
    }
    if ($chng_pwd2 != '') {
        if ($chng_pwd != $chng_pwd2) {
            global $hlpfile;
            include "header.php";
            GraphicAdmin($hlpfile);
            echo error_handler(adm_translate("Désolé, les nouveaux Mots de Passe ne correspondent pas. Cliquez sur retour et recommencez") . "<br />");
            include "footer.php";
            exit;
        }
        global $system_md5;
        if ($system_md5 or $temp_system_md5) {
            $chng_pwd = crypt($chng_pwd2, $chng_pwd);
        }
        if ($chng_radminsuper == 1) {
            $result = sql_query("UPDATE " . $NPDS_Prefix . "authors SET name='{$chng_name}', email='{$chng_email}', url='{$chng_url}', radminfilem='0', radminsuper='{$chng_radminsuper}', pwd='{$chng_pwd}' WHERE aid='{$chng_aid}'");
        } else {
            $result = sql_query("UPDATE " . $NPDS_Prefix . "authors SET name='{$chng_name}', email='{$chng_email}', url='{$chng_url}', radminfilem='{$chng_radminfilem}', radminsuper='0', pwd='{$chng_pwd}' WHERE aid='{$chng_aid}'");
        }
    } else {
        if ($chng_radminsuper == 1) {
            $result = sql_query("UPDATE " . $NPDS_Prefix . "authors SET name='{$chng_name}', email='{$chng_email}', url='{$chng_url}', radminfilem='0', radminsuper='{$chng_radminsuper}' WHERE aid='{$chng_aid}'");
            deletedroits($chng_aid);
        } else {
            $result = sql_query("UPDATE " . $NPDS_Prefix . "authors SET name='{$chng_name}', email='{$chng_email}', url='{$chng_url}', radminfilem='{$chng_radminfilem}', radminsuper='0' WHERE aid='{$chng_aid}'");
            deletedroits($chng_aid);
            updatedroits($chng_aid);
        }
    }
    global $aid;
    Ecr_Log('security', "ModifyAuthor({$chng_name}) by AID : {$aid}", '');
    Header("Location: admin.php?op=mod_authors");
}
开发者ID:npds,项目名称:npds_dune,代码行数:53,代码来源:authors.php

示例10: updateUser

function updateUser($chng_uid, $chng_uname, $chng_name, $chng_url, $chng_email, $chng_femail, $chng_user_from, $chng_user_occ, $chng_user_intrest, $chng_user_viewemail, $chng_avatar, $chng_user_sig, $chng_bio, $chng_pass, $chng_pass2, $level, $open_user, $chng_groupe, $chng_send_email, $chng_is_visible, $chng_mns, $C1, $C2, $C3, $C4, $C5, $C6, $C7, $C8, $M1, $M2, $T1, $T2, $B1, $raz_avatar, $chng_rank, $chng_lnl)
{
    global $NPDS_Prefix;
    $tmp = 0;
    if ($chng_pass2 != '') {
        if ($chng_pass != $chng_pass2) {
            global $hlpfile, $f_meta_nom, $f_titre, $adminimg;
            include "header.php";
            GraphicAdmin($hlpfile);
            adminhead($f_meta_nom, $f_titre, $adminimg);
            echo error_handler(adm_translate("Désolé, les nouveaux Mots de Passe ne correspondent pas. Cliquez sur retour et recommencez") . "<br />");
            adminfoot('', '', '', '');
            return;
        }
        $tmp = 1;
    }
    $result = sql_query("SELECT mns FROM " . $NPDS_Prefix . "users WHERE uid='{$chng_uid}'");
    list($tmp_mns) = sql_fetch_row($result);
    if ($tmp_mns == 0 and $chng_mns == 1) {
        Minisites($chng_mns, $chng_uname);
    }
    if ($chng_send_email == '') {
        $chng_send_email = '0';
    }
    if ($chng_is_visible == '') {
        $chng_is_visible = '1';
    } else {
        $chng_is_visible = '0';
    }
    if ($raz_avatar) {
        $chng_avatar = "blank.gif";
    }
    if ($tmp == 0) {
        sql_query("UPDATE " . $NPDS_Prefix . "users SET uname='{$chng_uname}', name='{$chng_name}', email='{$chng_email}', femail='{$chng_femail}', url='{$chng_url}', user_from='{$chng_user_from}', user_occ='{$chng_user_occ}', user_intrest='{$chng_user_intrest}', user_viewemail='{$chng_user_viewemail}', user_avatar='{$chng_avatar}', user_sig='{$chng_user_sig}', bio='{$chng_bio}', send_email='{$chng_send_email}', is_visible='{$chng_is_visible}', mns='{$chng_mns}', user_lnl='{$chng_lnl}' WHERE uid='{$chng_uid}'");
    }
    if ($tmp == 1) {
        global $system;
        if (!$system) {
            $cpass = crypt($chng_pass, $chng_pass);
        } else {
            $cpass = $chng_pass;
        }
        sql_query("UPDATE " . $NPDS_Prefix . "users SET uname='{$chng_uname}', name='{$chng_name}', email='{$chng_email}', femail='{$chng_femail}', url='{$chng_url}', user_from='{$chng_user_from}', user_occ='{$chng_user_occ}', user_intrest='{$chng_user_intrest}', user_viewemail='{$chng_user_viewemail}', user_avatar='{$chng_avatar}', user_sig='{$chng_user_sig}', bio='{$chng_bio}', send_email='{$chng_send_email}', is_visible='{$chng_is_visible}', mns='{$chng_mns}', pass='{$cpass}', user_lnl='{$chng_lnl}' WHERE uid='{$chng_uid}'");
    }
    if ($chng_user_viewemail) {
        $attach = 1;
    } else {
        $attach = 0;
    }
    if ($open_user == '') {
        $open_user = 0;
    }
    if (preg_match('#[a-zA-Z_]#', $chng_groupe)) {
        $chng_groupe = '';
    }
    if ($chng_groupe != '') {
        $tab_groupe = explode(',', $chng_groupe);
        if ($tab_groupe) {
            foreach ($tab_groupe as $groupevalue) {
                if ($groupevalue == "0" and $groupevalue != '') {
                    $chng_groupe = '';
                }
                if ($groupevalue == "1") {
                    $chng_groupe = '';
                }
                if ($groupevalue > "127") {
                    $chng_groupe = '';
                }
            }
        }
    }
    sql_query("UPDATE " . $NPDS_Prefix . "users_status SET attachsig='{$attach}', level='{$level}', open='{$open_user}', groupe='{$chng_groupe}', rank='{$chng_rank}' WHERE uid='{$chng_uid}'");
    sql_query("UPDATE " . $NPDS_Prefix . "users_extend SET C1='{$C1}', C2='{$C2}', C3='{$C3}', C4='{$C4}', C5='{$C5}', C6='{$C6}', C7='{$C7}', C8='{$C8}', M1='{$M1}', M2='{$M2}', T1='{$T1}', T2='{$T2}', B1='{$B1}' WHERE uid='{$chng_uid}'");
    global $aid;
    Ecr_Log("security", "UpdateUser({$chng_uid}, {$chng_uname}) by AID : {$aid}", "");
    global $referer;
    if ($referer != "memberslist.php") {
        Header("Location: admin.php?op=mod_users");
    } else {
        Header("Location: memberslist.php");
    }
}
开发者ID:npds,项目名称:npds_dune,代码行数:82,代码来源:users.php

示例11: getip

     include "header.php";
 }
 // Either valid user/pass, or valid session. continue with post.
 if ($stop != 1) {
     $poster_ip = getip();
     if ($dns_verif) {
         $hostname = @gethostbyaddr($poster_ip);
     } else {
         $hostname = $poster_ip;
     }
     // anti flood
     anti_flood($Mmod, $anti_flood, $poster_ip, $userdata, $gmt);
     //anti_spambot
     if (isset($asb_question) and isset($asb_reponse)) {
         if (!R_spambot($asb_question, $asb_reponse, $message)) {
             Ecr_Log("security", "Forum Anti-Spam : forum=" . $forum . " / topic=" . $topic, "");
             redirect_url("{$url_ret}");
             die;
         }
     }
     if ($formulaire != '') {
         include "modules/comments/comments_extender.php";
     }
     if ($allow_html == 0 || isset($html)) {
         $message = htmlspecialchars($message, ENT_COMPAT | ENT_HTML401, cur_charset);
     }
     if (isset($sig) && $userdata['uid'] != 1) {
         $message .= ' [addsig]';
     }
     $message = aff_code($message);
     $message = str_replace("\n", "<br />", $message);
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:31,代码来源:reply.php

示例12: fma_filter

         }
     } else {
         $Err = $auto[1];
     }
     break;
 case "pict-save":
     $auto = fma_filter("d", $att_name, $obj->Extension);
     if ($auto[0]) {
         $auto[3] = decrypt($browse);
         $fp = fopen($auto[3] . "/" . $auto[2] . "/pic-manager.txt", 'w');
         settype($maxthumb, "integer");
         fputs($fp, "Enable and customize pic-manager / to remove pic-manager : just remove pic-manager.txt\n");
         fputs($fp, $maxthumb . "\n");
         fputs($fp, $refresh . "\n");
         fclose($fp);
         Ecr_Log("security", "Pic-Manager", $log_dir . "/" . $auto[2] . " IP=>" . getip());
     } else {
         $Err = $auto[1];
     }
 case "searchfile":
     $resp = $obj->SearchFile($base, $filesearch);
     if ($resp) {
         $resp = explode("|", $resp);
         array_pop($resp);
         $cpt = 0;
         while ($fic_resp = each($resp)) {
             // on limite le retour au niveau immédiatement inférieur au rep courant
             $rep_niv1 = explode("/", str_replace($base, "", $fic_resp[1]));
             if (count($rep_niv1) < 4) {
                 $dir_search = basename(dirname($fic_resp[1]));
                 $fic_search = basename($fic_resp[1]);
开发者ID:npds,项目名称:npds_dune,代码行数:31,代码来源:f-manager.php

示例13: edito_mod_save

function edito_mod_save($edito_type, $XeditoJ, $XeditoN, $aff_jours, $aff_jour, $aff_nuit)
{
    if ($aff_jours <= 0) {
        $aff_jours = "999";
    }
    if ($edito_type == 'G') {
        $fp = fopen("static/edito.txt", "w");
        fputs($fp, "[jour]" . str_replace("&quot;", "\"", stripslashes($XeditoJ)) . "[/jour][nuit]" . str_replace("&quot;", "\"", stripslashes($XeditoN)) . "[/nuit]");
        fputs($fp, "aff_jours=" . $aff_jours);
        fputs($fp, "&aff_jour=" . $aff_jour);
        fputs($fp, "&aff_nuit=" . $aff_nuit);
        fputs($fp, "&aff_date=" . time());
        fclose($fp);
    } elseif ($edito_type == 'M') {
        $fp = fopen("static/edito_membres.txt", "w");
        fputs($fp, "[jour]" . str_replace("&quot;", "\"", stripslashes($XeditoJ)) . "[/jour][nuit]" . str_replace("&quot;", "\"", stripslashes($XeditoN)) . "[/nuit]");
        fputs($fp, "aff_jours=" . $aff_jours);
        fputs($fp, "&aff_jour=" . $aff_jour);
        fputs($fp, "&aff_nuit=" . $aff_nuit);
        fputs($fp, "&aff_date=" . time());
        fclose($fp);
    }
    global $aid;
    Ecr_Log("security", "editoSave () by AID : {$aid}", "");
    redirect_url("admin.php?op=Edito");
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:26,代码来源:adminedito.php

示例14: decryptK

        if ($pasfinA and $pasfinB) {
            $subject = decryptK(removeHack($Xsubject), $tmp['KEY']);
            $hometext = decryptK(removeHack($Xhometext), $tmp['KEY']);
            $bodytext = decryptK(removeHack($Xbodytext), $tmp['KEY']);
            $notes = decryptK(removeHack($Xnotes), $tmp['KEY']);
            $ihome = decryptK(removeHack($Xihome), $tmp['KEY']);
            $date_finval = decryptK(removeHack($Xdate_finval), $tmp['KEY']);
            $epur = decryptK(removeHack($Xepur), $tmp['KEY']);
            // autonews ou pas ?
            $date_debval = decryptK(removeHack($Xdate_debval), $tmp['KEY']);
            if ($date_debval == "") {
                $result = sql_query("insert into " . $NPDS_Prefix . "stories values (NULL, '{$catid}', '{$aid}', '{$subject}', now(), '{$hometext}', '{$bodytext}', '0', '0', '{$topicid}', '{$author}', '{$notes}', '{$ihome}', '0', '{$date_finval}','{$epur}')");
                Ecr_Log("security", "Cluster Paradise : insert_stories ({$subject} - {$date_finval}) by AID : {$aid}", "");
                // Réseaux sociaux
                if (file_exists('modules/npds_twi/npds_to_twi.php')) {
                    include 'modules/npds_twi/npds_to_twi.php';
                }
                if (file_exists('modules/npds_fbk/npds_to_fbk.php')) {
                    include 'modules/npds_twi/npds_to_fbk.php';
                }
                // Réseaux sociaux
            } else {
                $result = sql_query("insert into " . $NPDS_Prefix . "autonews values (NULL, '{$catid}', '{$aid}', '{$subject}', now(), '{$hometext}', '{$bodytext}', '{$topicid}', '{$author}', '{$notes}', '{$ihome}','{$date_debval}','{$date_finval}','{$epur}')");
                Ecr_Log("security", "Cluster Paradise : insert_autonews ({$subject} - {$date_debval} - {$date_finval}) by AID : {$aid}", "");
            }
            sql_query("update " . $NPDS_Prefix . "users set counter=counter+1 where uname='{$author}'");
            sql_query("update " . $NPDS_Prefix . "authors set counter=counter+1 where aid='{$aid}'");
        }
    }
}
echo "<script type=\"text/javascript\">\n     //<![CDATA[\n     self.close();\n     //]]>\n     </script>";
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:31,代码来源:cluster-E.php

示例15: sitemap_create

function sitemap_create($PAGES, $filename)
{
    $ibid = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
    $ibid .= "<urlset\n";
    $ibid .= "xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"\n";
    $ibid .= "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n";
    $ibid .= "xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9\n http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">\n\n";
    if (array_key_exists('sitemap', $PAGES['article.php'])) {
        $ibid .= sitemaparticle($PAGES['article.php']['sitemap']);
    }
    if (array_key_exists('sitemap', $PAGES['forum.php'])) {
        $ibid .= sitemapforum($PAGES['forum.php']['sitemap']);
    }
    if (array_key_exists('sitemap', $PAGES['sections.php'])) {
        $ibid .= sitemaprub($PAGES['sections.php']['sitemap']);
    }
    if (array_key_exists('sitemap', $PAGES['download.php'])) {
        $ibid .= sitemapdown($PAGES['download.php']['sitemap']);
    }
    $ibid .= sitemapothers($PAGES);
    $ibid .= "</urlset>";
    $file = fopen($filename, "w");
    fwrite($file, $ibid);
    fclose($file);
    Ecr_Log("sitemap", "sitemap generated : " . date("H:i:s", time()), "");
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:26,代码来源:sitemap.php


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