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


PHP js_goto函数代码示例

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


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

示例1: fwrite

     fwrite(fopen("config.php", "w"), "");
     // fclose("config.php");
 }
 if (!file_exists("config.m4.php")) {
     fwrite(fopen("config.m4.php", "w"), "");
     // fclose("config.m4.php");
 }
 if (!file_exists("config.ab.php")) {
     fwrite(fopen("config.ab.php", "w"), "");
     // fclose("config.ab.php");
 }
 if ($install == "update") {
     js_goto("update.php?stage=1&langue={$langue}");
 } else {
     if ($install == "update16") {
         js_goto("update.php?stage=1&langue={$langue}&sql=16");
     }
 }
 echo "<h3>{$strInstallStage1}</h3>";
 if (!is_writable($filename)) {
     show_warning("{$strPermissionInvalideConfigFile} : {$filename}");
 }
 if (!is_writable($filenamem4)) {
     show_warning("{$strPermissionInvalideConfigFile} : {$filenamem4}");
 }
 if (!is_writable($filenameab)) {
     show_warning("{$strPermissionInvalideConfigFile} : {$filenameab}");
 }
 echo "<table cellspacing=2 cellpadding=2 border=0>";
 echo "<tr><td class=title>{$strInstallStage1Consignes} :</td></tr>";
 echo "</table>";
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:install.php

示例2: js_goto

            $grade['x'] = 'x';
        }
        // Y est wararranger ou leader d'une Team
        if (eregi('y', $grade_ch->grade)) {
            $grade['y'] = 'y';
        }
        //le Z est le rang 'user' un membre qui n'a pas "z" est bannit...
        if (eregi('z', $grade_ch->grade)) {
            $grade['z'] = 'z';
        }
    }
    /*** Si le joueur est bannit on l'exclut ***/
    if ($grade['z'] != 'z') {
        //setcookie("data","banned",time()-9999999);
        if ($page != "banned") {
            js_goto("?page=banned");
        }
    }
}
/*** Correction du s_type selon rang admin ***/
if (($grade['a'] == 'a' || $grade['b'] == 'b') && $s_type != '2') {
    //SessionSetVar("s_type","2");
}
/*** chargement du BBcode de lalex ***/
// Les tableaux contenant les donn&eacute;es des BBCodes
// bbTags : contient le nom de chaque tag
$bbTags = array();
// htmlTags : contient les donn&eacute;es de traduction en code HTML
$htmlTags = array();
// Contient les tags ouverts dans le fichier XML
$xmlstack = array();
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:kernel.php

示例3: die

   | You should have received a copy of the GNU General Public License   |
   | along with AdminBot; if not, write to the Free Software Foundation, |
   | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA       |
   |                                                                     |
   +---------------------------------------------------------------------+
   | Authors: Li0n  <li0n@phptournois.net>                               |
   |          RV <rv@phptournois.net>                                    |
   |          Gougou                                                     |
   +---------------------------------------------------------------------+
*/
if (eregi("matchs_list.php", $_SERVER['PHP_SELF'])) {
    die("You cannot open this page directly");
}
/*** test de la session ***/
if (empty($s_tournois)) {
    js_goto("?page=index");
}
/********************************************************
 * Affichage normal
 */
/*** verification securite ***/
if ($op == 'admin') {
    verif_admin_tournois($s_joueur, $s_tournois, $grade['a'], $grade['b'], $grade['t']);
}
if (!isset($id)) {
    $id = '';
}
if ($status != 'A' && $status != 'T' && $status != 'D' && $op != 'admin') {
    $status = 'T';
}
if ($status == 'C') {
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:matchs_liste.php

示例4: js_goto

    } else {
        js_goto("?page=index");
    }
}
/********************************************************
 * Del d'un commentaire
 */
if ($op == "del") {
    /*** verification securite ***/
    if ($grade['a'] != 'a' && $grade['b'] != 'b' && $grade['m'] != 'm') {
        js_goto($PHP_SELF);
    }
    $sqldel = "DELETE FROM `{$dbprefix}shoutbox` WHERE id='{$id}'";
    $reqdel = mysql_query($sqldel) or die('Erreur SQL !<br>' . $sqldel . '<br>' . mysql_error());
    //if a==o
    js_goto("?page=shoutbox&op=archive");
}
/********************************************************
 * Archive
 */
if ($op == "archive") {
    $db->select("count(id)");
    $db->from("{$dbprefix}shoutbox");
    $res = $db->exec();
    $row = mysql_fetch_row($res);
    $ptotal = $row[0];
    if ($ptotal == '' || $ptotal == NULL || $nptotal == "0") {
        $ptotal = "1";
    }
    if ($nbcom != "" || $nbcom != NULL) {
        $shoutlimit2 = $nbcom;
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:shoutbox.php

示例5: js_goto

            $db->where("id = {$id}");
            $db->exec();
        }
        if ($op_old == 'galerie') {
            echo "<script>this.opener.location=this.opener.location;this.close();</script>";
        } else {
            js_goto("?page=avatars&id={$id}&mode={$mode}");
        }
    }
} elseif ($op == "delete") {
    $avatar_sql = avatar_delete($ficheX->avatar_type, $ficheX->avatar);
    $db->update("{$dbprefix}{$type}");
    $db->set("{$avatar_sql}");
    $db->where("id = {$id}");
    $db->exec();
    js_goto("?page=avatars&id={$id}&mode={$mode}");
} elseif ($op == "galerie") {
    $dir = @opendir($config['avatars_path'] . '/gallerie');
    $avatar_images = array();
    while ($file = @readdir($dir)) {
        if ($file != '.' && $file != '..' && !is_file($config['avatars_path'] . '/gallerie/' . $file) && !is_link($config['avatars_path'] . '/gallerie/' . $file)) {
            $i = 0;
            $sub_dir = @opendir($config['avatars_path'] . '/gallerie/' . $file);
            while ($sub_file = @readdir($sub_dir)) {
                if (preg_match('/(\\.gif$|\\.png$|\\.jpg|\\.jpeg)$/is', $sub_file)) {
                    $avatar_images[$file][$i] = $file . '/' . $sub_file;
                    $avatar_names[$file][$i] = ucfirst(str_replace("_", " ", preg_replace('/^(.*)\\..*$/', '\\1', $sub_file)));
                    $i++;
                }
            }
        }
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:avatars.php

示例6: js_goto

    include 'config.m4_old.php';
} else {
    include 'config.m4.php';
}
if (@file_exists("config.ab_old.php") and $stage == 1) {
    include 'config.ab_old.php';
} else {
    include 'config.ab.php';
}
echo "<p class=title>.:: Mise &agrave; jour stage {$stage} ::.</p>";
/********************************************************
 * STAGE 0
 */
if ($stage == 0) {
    if (!defined("PHPTOURNOIS_INSTALLED")) {
        js_goto("install.php");
    }
    echo "<h3>Welcome on phpTournois !!</h3>";
    echo "<table cellspacing=2 cellpadding=2 border=0>";
    echo "<tr><td class=title>Please select your language :</td></tr>";
    echo "</table>";
    echo "<form method=post action=?stage=1>";
    echo "<table cellspacing=2 cellpadding=2 border=0>";
    echo "<tr><td class=text2 align=center>";
    echo "<select name=langue>";
    $fd = opendir("lang/");
    while ($file = readdir($fd)) {
        if ($file != "." && $file != "..") {
            $file = ereg_replace(".inc.php", "", $file);
            echo "<option value={$file}>{$file}";
        }
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:update.php

示例7: die

   |                                                                     |
   | You should have received a copy of the GNU General Public License   |
   | along with AdminBot; if not, write to the Free Software Foundation, |
   | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA       |
   |                                                                     |
   +---------------------------------------------------------------------+
   | Authors: Li0n  <li0n@phptournois.net>                               |
   |          RV <rv@phptournois.net>                                    |
   |          Gougou                                                     |
   +---------------------------------------------------------------------+
*/
if (eregi("irc.php", $_SERVER['PHP_SELF'])) {
    die("You cannot open this page directly");
}
if (!$config['irc']) {
    js_goto('?page=index');
}
/********************************************************
 * Applet java
 */
if ($op == "applet") {
    /*** recup des infos pour la connection ***/
    if (!empty($s_joueur)) {
        $joueur = joueur($s_joueur);
        $nick = $joueur->pseudo;
        $altnick = $joueur->nom;
        $name = "{$joueur->nom} {$joueur->prenom}";
    } elseif ($pseudo) {
        $nick = $name = $pseudo;
        $altnick = $pseudo . rand(100, 200);
    } else {
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:irc.php

示例8: js_goto

    } else {
        $db->insert("{$dbprefix}jeux (nom,sigle,icone)");
        $db->values("'{$nom}','{$sigle}','{$icone}'");
        $db->exec();
        /*** redirection ***/
        js_goto("?page=jeux");
    }
} elseif ($op == "delete") {
    $db->delete("{$dbprefix}jeux");
    $db->where("id = {$id}");
    $db->exec();
    $db->delete("{$dbprefix}maps");
    $db->where("jeux = {$id}");
    $db->exec();
    /*** redirection ***/
    js_goto("?page=jeux");
} else {
    $nb_jeux = nb_jeux() - 1;
    echo "<p class=title>.:: {$strAdminJeux} ::.</p>";
    echo "<table cellspacing=0 cellpadding=0 border=0>";
    echo "<tr><td class=title>" . $nb_jeux . " {$strJeux}</td></tr>";
    echo "</table>";
    $db->select("*");
    $db->from("{$dbprefix}jeux");
    $db->where("id <> 1");
    $db->order_by("sigle");
    $jeux = $db->exec();
    /** reinit des colonne a 1 ***/
    if ($db->num_rows($jeux) < $config['col_jeux']) {
        $config['col_jeux'] = 1;
    }
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:jeux.php

示例9: die

   | You should have received a copy of the GNU General Public License   |
   | along with AdminBot; if not, write to the Free Software Foundation, |
   | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA       |
   |                                                                     |
   +---------------------------------------------------------------------+
   | Authors: Li0n  <li0n@phptournois.net>                               |
   |          RV <rv@phptournois.net>                                    |
   |          Gougou                                                     |
   +---------------------------------------------------------------------+
*/
if (eregi("matchs_finales_exp.php", $_SERVER['PHP_SELF'])) {
    die("You cannot open this page directly");
}
/*** test de la session ***/
if (empty($s_tournois)) {
    js_goto("index.php");
}
/********************************************************
 * Generer tous les matchs
 */
/*** verification securite ***/
verif_admin_tournois($s_joueur, $s_tournois, $grade['a'], $grade['b'], $grade['t']);
if (!isset($status)) {
    $status = '';
}
if (!isset($x)) {
    $x = '';
}
// calcul global des parametres de l'arbre
$nb_x_total = log($nb_finales_winner_tournois) / log(2);
if ($modeelimination_tournois == 'D') {
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:matchs_finales_exp.php

示例10: js_goto

        }
        if ($select_test == '') {
            js_goto("?page=faq&op=admin&alerte=b");
        }
        echo '</select></td><td>';
        $db->select("categorie,idcat");
        $db->from("{$dbprefix}faq ORDER by id");
        $res = $db->exec();
        echo '<font size="2" color ="blue"><b>';
        echo "{$str_faq_in}";
        echo '</b></font></td><td><select name="catf">';
        while ($data = $db->fetch($res)) {
            if ($data->categorie != '') {
                echo '<option value="' . $data->idcat . '">' . $data->categorie . '</option>';
            }
        }
        echo '</td></tr></table><br>';
        echo '<input type="hidden" name="catidx" value="' . $catid . '"><input type="submit" name="Submit" value="';
        echo "- {$strOK} -";
        echo '">';
        echo '</form>';
    }
    if ($_GET['act'] == "Iup") {
        $catid = $_POST['catf'];
        $id = $_POST['catf1'];
        $catidx = $_POST['catidx'];
        $sql = "UPDATE `{$dbprefix}faq` SET idcat='{$catid}' WHERE id='{$id}'";
        $req = mysql_query($sql) or die('Erreur SQL !<br>' . $sql . '<br>' . mysql_error());
        js_goto("?page=faq&op=admin&act=I2&catid={$catidx}&v=o");
    }
}
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:faq.php

示例11: js_goto

                }
            }
            //admin
            if ($acces == "N") {
                if ($grade['a'] != 'a' && $grade['b'] != 'b' && $grade['g'] != 'g' && $grade['n'] != 'n') {
                    js_goto('?page=login');
                }
            }
            //Newser
            if ($acces == "M") {
                if ($s_joueur == "" || $s_joueur == NULL) {
                    js_goto('?page=login');
                }
            }
            //joueur
            if ($acces == "P") {
                if (!premium($s_joueur) && ($grade['a'] != 'a' && $grade['b'] != 'b' && $grade['g'] != 'g')) {
                    js_goto('?page=login');
                }
            }
            //premium
            if ($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['g'] == 'g') {
                echo "<a href='?page=page&op=modif&id=" . $data['id'] . "'><img src='images/edit.gif' border=0 /></a><a href='?page=page&op=delpage&id=" . $data['id'] . "'> <img src='images/f.gif' border=0 /></a><br><br>";
            }
            $contenu = BBcode($contenu);
            $contenu = stripslashes($contenu);
            $contenu = wordwrap($contenu, 180, "\n", 1);
            echo $contenu;
        }
    }
}
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:page.php

示例12: js_goto

    $db->exec();
    $db->update("{$dbprefix}forum");
    $db->set("cattopic='{$new_cat}' WHERE topid='{$topid}'");
    $db->exec();
    /*** redirection ***/
    js_goto("?page=forum");
}
/********************************************************
* Locker un sujet Sujet 
*/
if ($_GET['op'] == "iwtl") {
    $db->update("{$dbprefix}forum_message");
    $db->set("locking='1' WHERE topid='{$topid}'");
    $db->exec();
    /*** redirection ***/
    js_goto("?page=forum");
}
/********************************************************
* Locker un sujet Sujet 
*/
if ($_GET['op'] == "iwtul") {
    $db->update("{$dbprefix}forum_message");
    $db->set("locking='0' WHERE topid='{$topid}'");
    $db->exec();
    /*** redirection ***/
    js_goto("?page=forum");
}
?>


开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:28,代码来源:forum.php

示例13: js_goto

        echo "<img src=\"images/back.gif\" border=0 align=align=absmiddle> <a href=javascript:back() class=action>{$strRetour}</a><br>";
    } else {
        js_goto("?page=equipe&op=rejoindre");
    }
} elseif ($op == "libere") {
    /* pour l'instant, seul l'administrateur master/normal/de salle peut lib&eacute;rer une place */
    if ($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['k'] == 'k') {
        $db->update("{$dbprefix}plan");
        $db->set("status = '0'");
        $db->where("place = '{$place}'");
        $db->exec();
    }
    js_goto("?page=plan");
} else {
    if ($op == 'admin' && ($grade['a'] != 'a' && $grade['b'] != 'b' && $grade['k'] != 'k')) {
        js_goto('?page=news');
    }
    /* Titre de la page */
    if (($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['k'] == 'k') && $op == 'admin') {
        echo "<p class=title>.:: " . $strAdministrationReservation . " ::.</p>";
    } else {
        echo "<p class=title>.:: " . $strPlanSalle . " ::.</p>";
    }
    /* Affiche le plan des &eacute;quipes */
    $fp = fopen($fichier_plan, "r");
    $data = fread($fp, 50000);
    $db->select("status, place");
    $db->from("{$dbprefix}plan");
    $res = $db->exec();
    while ($reserve = $db->fetch($res)) {
        switch ($reserve->status) {
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:plan.php

示例14: verif_manager

        if (modeequipe_tournois($id) == 'E' && participe($equipe, $id)) {
            /*** verification securite ***/
            verif_manager($equipe, $s_joueur);
            $db->delete("{$dbprefix}participe");
            $db->where("tournois = {$s_tournois}");
            $db->where("equipe = {$equipe}");
            $db->exec();
        } elseif (modeequipe_tournois($id) == 'J' && participe($s_joueur, $id)) {
            $db->delete("{$dbprefix}participe");
            $db->where("tournois = {$s_tournois}");
            $db->where("equipe = {$s_joueur}");
            $db->exec();
        }
    }
    /*** redirection ***/
    js_goto("?page=inscriptions");
} elseif ($op == "admin") {
    /*** verification securite ***/
    verif_admin_tournois($s_joueur, $s_tournois, $grade['a'], $grade['b'], $grade['t']);
    /*** affichage main ***/
    echo "<p class=title>.:: " . ${'str' . $EquipesX . 'Inscrits'} . " - {$nom_tournois}::.</p>";
    echo "<table cellspacing=0 cellpadding=0 border=0>";
    $nbinscrits = nb_inscrits_tournois($s_tournois);
    $nbplaces = nb_places_tournois($s_tournois);
    if ($nbinscrits > $nbplaces) {
        echo "<tr><td class=title><font color=red>{$nbinscrits}</font> / {$nbplaces} {${"str{$EquipesX}"}}</td></tr>";
    } else {
        echo "<tr><td class=title>{$nbinscrits} / {$nbplaces} {${"str{$EquipesX}"}}</td></tr>";
    }
    echo "</table>";
    /*** Inscription des equipes au tournois***/
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:inscriptions.php

示例15: show_erreur_saisie

        }
    }
    if ($erreur == 1) {
        show_erreur_saisie($str);
    } else {
        $db->update("{$dbprefix}news");
        $db->set("titre = '{$titre}'");
        $db->set("contenu = '{$contenu}'");
        $db->set("icone = '{$icone}'");
        $db->set("icone2 = '{$icone2}'");
        $db->set("titre_2 = '{$titre_2}'");
        $db->set("contenu_2 = '{$contenu_2}'");
        $db->where("id = {$id}");
        $db->exec();
        /*** redirection ***/
        js_goto("?page=news&op=modify_news&id={$id}");
    }
} elseif ($op == "imprimer") {
    $str = '';
    $erreur = 0;
    if (!is_numeric($id)) {
        $erreur = 1;
        $str .= "- " . $strElementsNewsInvalide . "<br>";
    }
    if ($erreur == 1) {
        show_erreur($str);
    } else {
        $db->select("*");
        $db->from("{$dbprefix}news");
        $db->where("id = {$id}");
        $res = $db->exec();
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:news.php


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