コード例 #1
0
 public function lineAction()
 {
     $reb = D('Rebate');
     $reb->del();
     $url = U('Rebate/Index/line');
     redirect_url($url);
 }
コード例 #2
0
ファイル: marquetapage.php プロジェクト: npds/npds_dune
function marquetapage_add($uri, $topic, $action)
{
    global $cookie, $NPDS_Prefix, $nuke_url;
    if ($action == 'ad_tapage' and $cookie[0]) {
        $drname = dirname($uri);
        if ($drname == '.') {
            $uri = $nuke_url . '/' . $uri;
        } elseif ($drname == '/') {
            $uri = $nuke_url . $uri;
        } else {
            if ($_SERVER['SERVER_PORT'] == "80") {
                $uri = "http://" . $_SERVER['SERVER_NAME'] . $uri;
            } else {
                $uri = "http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . $uri;
            }
        }
        sql_query("INSERT INTO " . $NPDS_Prefix . "marquetapage (uid, uri, topic) VALUES ('{$cookie['0']}', '{$uri}', '{$topic}')");
        redirect_url($uri);
    }
    if ($action == "sp_tapage" and $cookie[0]) {
        $result = sql_query("SELECT uri FROM " . $NPDS_Prefix . "marquetapage WHERE uid='{$cookie['0']}' AND uri='{$uri}'");
        if (sql_num_rows($result) > 0) {
            sql_query("DELETE FROM " . $NPDS_Prefix . "marquetapage WHERE uid='{$cookie['0']}' AND uri='{$uri}'");
            redirect_url($uri);
        }
    }
    if ($action == 'sp_tespages' and $cookie[0]) {
        $result = sql_query("SELECT uri FROM " . $NPDS_Prefix . "marquetapage WHERE uid='{$cookie['0']}'");
        if (sql_num_rows($result) > 0) {
            sql_query("DELETE FROM " . $NPDS_Prefix . "marquetapage WHERE uid='{$cookie['0']}'");
            redirect_url($uri);
        }
    }
}
コード例 #3
0
 public function UpdateAction()
 {
     $intro = M('Introduction');
     $intro->create();
     $intro->save();
     $url = U('Introduction/Pay/index');
     redirect_url($url);
 }
コード例 #4
0
 public function lineAction()
 {
     $rebate = D('Rebate');
     $key = 1;
     $rebate->update($key);
     $url = U('Rebate/Index/line');
     redirect_url($url);
 }
コード例 #5
0
 public function lineAction()
 {
     $reb = D('Rebate');
     $key = 1;
     $res = $reb->datasave($key);
     $url = U('Rebate/Index/line');
     redirect_url($url);
 }
コード例 #6
0
 public function indexAction()
 {
     $id = I('get.id', '');
     if ($id == '') {
         return false;
     }
     $customer = new CustomerModel();
     $customerInfo = $customer->changeCustomerFreezenState($id);
     $url = $_SERVER['HTTP_REFERER'];
     redirect_url($url);
 }
コード例 #7
0
 public function updateAction()
 {
     $setPacketM = new SetRedpacketModel();
     $data = $setPacketM->create();
     $data['id'] = I('post.id');
     $data['old_state'] = I('post.old_state', 0);
     $data['new_state'] = I('post.new_state', 0);
     $data['old_min_value'] = huansuan(I('post.old_min_value'));
     $data['old_max_value'] = huansuan(I('post.old_max_value'));
     $data['new_min_value'] = huansuan(I('post.new_min_value'));
     $data['new_max_value'] = huansuan(I('post.new_max_value'));
     $data['old_max_num'] = I('post.old_max_num');
     $data['attention_give'] = I('post.attention_give', 0);
     $data['wishing'] = trim(I('post.wishing'));
     $data['share_url'] = trim(I('post.share_url'));
     $setPacketM->save($data);
     $urlIndex = U('Active/SendRedGift/index');
     redirect_url($urlIndex);
 }
コード例 #8
0
 public function UpdateAction()
 {
     $intro = M('Introduction');
     $conf = M('config');
     $intro->create();
     $intro->save();
     $map1[name] = 'SYSTEM_UPPER_LIMIT';
     $map2[name] = 'SYSTEM_LOWER_LIMIT';
     $map3[name] = 'SYSTEM_COUNT_LIMIT';
     $data1 = array();
     $data2 = array();
     $data3 = array();
     $data1[value] = I('post.up');
     $data2[value] = I('post.low');
     $data3[value] = I('post.count');
     $conf->where($map2)->save($data2);
     $conf->where($map1)->save($data1);
     $conf->where($map3)->save($data3);
     $url = U('Introduction/Customs/index');
     redirect_url($url);
 }
コード例 #9
0
 public function signInAction()
 {
     $name = I('post.name', 0);
     $password = I('post.password', 0);
     $miPassword = ao_mi($name, $password);
     $dbPassword = $this->user->field('password')->where('userid=' . "'{$name}'")->find();
     if ($dbPassword[password] == null) {
         $error = "该用户不存在";
         $this->assign(error, $error);
         $this->loginAction();
     } else {
         if ($dbPassword[password] == $miPassword) {
             session('userId', $name, 1800);
             $url = U('Admin/Index/index');
             redirect_url($url);
             die;
         } else {
             $error = "密码错误";
             $this->assign(error, $error);
             $this->loginAction();
         }
     }
 }
コード例 #10
0
 public function UpdateAction()
 {
     $intro = M('config');
     $map1[name] = "SYSTEM_FIRST_HEAVY";
     $map2[name] = "SYSTEM_FIRST_COST";
     $map3[name] = "SYSTEM_CONTINUE_HEAVY";
     $map4[name] = "SYSYEM_CONTINUE_COST";
     $map5[name] = "SYSTEM_PACKAGE_HEAVY";
     $map6[name] = "SYSTEM_FREIGHT_EXPLAIN";
     $data1[value] = I('post.firstWeight');
     $data2[value] = I('post.firstCost');
     $data3[value] = I('post.continueWeight');
     $data4[value] = I('post.continueCost');
     $data5[value] = I('post.packageHeavy');
     $data6[value] = I('post.freightExplain');
     $intro->where($map1)->save($data1);
     $intro->where($map2)->save($data2);
     $intro->where($map3)->save($data3);
     $intro->where($map4)->save($data4);
     $intro->where($map5)->save($data5);
     $intro->where($map6)->save($data6);
     $url = U('Introduction/Weight/index');
     redirect_url($url);
 }
コード例 #11
0
ファイル: admin.php プロジェクト: npds/npds_dune
         <strong>' . translate("Nickname: ") . '</strong> ' . $m['uname'] . '<br />
         <strong>' . translate("User IP: ") . '</strong> ' . $m['poster_ip'] . '<br />
         <strong>' . translate("User DNS: ") . '</strong> ' . $m['poster_dns'] . '<br />
      </div>
      <p><a href="' . rawurldecode($url_ret) . '" class="btn btn-primary">' . translate("Go Back") . '</a></p>';
            include "footer.php";
            break;
        case 'aff':
            $sql = "UPDATE " . $NPDS_Prefix . "posts SET post_aff = '{$ordre}' WHERE post_id = '{$post}'";
            sql_query($sql);
            // ordre de mise à jour d'un champ externe ?
            if ($ordre) {
                if ($comments_req_add != '') {
                    sql_query("UPDATE " . $NPDS_Prefix . $comments_req_add);
                }
            } else {
                if ($comments_req_del != '') {
                    sql_query("UPDATE " . $NPDS_Prefix . $comments_req_del);
                }
            }
            redirect_url("{$url_ret}");
            break;
    }
} else {
    include "header.php";
    opentable();
    echo "<p align=\"center\">" . translate("You are not the moderator of this forum therefor you cannot perform this function.") . "<br /><br />";
    echo "<a href=\"javascript:history.go(-1)\" class=\"noir\">" . translate("Go Back") . "</a></p>";
    closetable();
    include "footer.php";
}
コード例 #12
0
ファイル: stories.php プロジェクト: Jireck-npds/npds_dune
function changeStory($sid, $subject, $hometext, $bodytext, $topic, $notes, $catid, $ihome, $members, $Mmembers, $Cdate, $Csid, $date_finval, $epur, $theme)
{
    global $NPDS_Prefix;
    global $aid, $ultramode;
    $subject = stripslashes(FixQuotes(str_replace('"', '&quot;', $subject)));
    $hometext = stripslashes(FixQuotes($hometext));
    $bodytext = stripslashes(FixQuotes($bodytext));
    $notes = stripslashes(FixQuotes($notes));
    if ($members == 1 and $Mmembers == "") {
        $ihome = "-127";
    }
    if ($members == 1 and ($Mmembers > 1 and $Mmembers <= 127)) {
        $ihome = $Mmembers;
    }
    if ($Cdate) {
        sql_query("UPDATE " . $NPDS_Prefix . "stories SET catid='{$catid}', title='{$subject}', hometext='{$hometext}', bodytext='{$bodytext}', topic='{$topic}', notes='{$notes}', ihome='{$ihome}',time=now(), date_finval='{$date_finval}', auto_epur='{$epur}', archive='0' WHERE sid='{$sid}'");
    } else {
        sql_query("UPDATE " . $NPDS_Prefix . "stories SET catid='{$catid}', title='{$subject}', hometext='{$hometext}', bodytext='{$bodytext}', topic='{$topic}', notes='{$notes}', ihome='{$ihome}', date_finval='{$date_finval}', auto_epur='{$epur}' WHERE sid='{$sid}'");
    }
    if ($Csid) {
        if ($ibid = theme_image("pick.gif")) {
            $imgtmp = $ibid;
        } else {
            $imgtmp = "images/pick.gif";
        }
        sql_query("UPDATE " . $NPDS_Prefix . "stories SET hometext='<img src=\"" . $imgtmp . "\" border=\"0\" align=\"center\" alt=\"\" /> :: {$hometext}' WHERE sid='{$sid}'");
        list($Lsid) = sql_fetch_row(sql_query("SELECT sid FROM " . $NPDS_Prefix . "stories ORDER BY sid DESC"));
        $Lsid++;
        sql_query("UPDATE " . $NPDS_Prefix . "stories SET sid='{$Lsid}' WHERE sid='{$sid}'");
        // commentaires
        if (file_exists("modules/comments/article.conf.php")) {
            include "modules/comments/article.conf.php";
            sql_query("UPDATE " . $NPDS_Prefix . "posts SET topic_id='{$Lsid}' WHERE forum_id='{$forum}' AND topic_id='{$topic}'");
        }
        $sid = $Lsid;
    }
    global $aid;
    Ecr_Log("security", "changeStory({$sid}, {$subject}, hometext..., bodytext..., {$topic}, notes..., {$catid}, {$ihome}, {$members}, {$Mmembers}, {$Cdate}, {$Csid}, {$date_finval},{$epur},{$theme}) by AID : {$aid}", "");
    if ($ultramode) {
        ultramode();
    }
    // Cluster Paradise
    if (file_exists("modules/cluster-paradise/cluster-activate.php")) {
        include "modules/cluster-paradise/cluster-activate.php";
    }
    if (file_exists("modules/cluster-paradise/cluster-M.php")) {
        include "modules/cluster-paradise/cluster-M.php";
    }
    // Cluster Paradise
    // 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
    redirect_url("admin.php?op=EditStory&sid={$sid}");
}
コード例 #13
0
 public function indexAction()
 {
     $url = U('noPay');
     redirect_url($url);
 }
コード例 #14
0
ファイル: pic-manager.php プロジェクト: Jireck-npds/npds_dune
    if (substr(@php_uname(), 0, 7) == "Windows") {
        $cur_nav = str_replace("\\", "/", $obj->Pwd());
        $cur_nav_back = dirname($base);
    } else {
        $cur_nav = $obj->Pwd();
        $cur_nav_back = str_replace("\\", "/", dirname($base));
    }
    $home = "/" . basename($basedir_fma);
    $cur_nav_href_back = "<a href=\"modules.php?ModPath={$ModPath}&amp;ModStart={$ModStart}&amp;FmaRep={$FmaRep}&amp;browse=" . rawurlencode(encrypt($cur_nav_back)) . "\">" . str_replace(dirname($basedir_fma), "", $cur_nav_back) . "</a>/" . basename($cur_nav);
    if ($home_fma != "") {
        $cur_nav_href_back = str_replace($home, $home_fma, $cur_nav_href_back);
    }
    $cur_nav_encrypt = rawurlencode(encrypt($cur_nav));
} else {
    // le répertoire ou sous répertoire est protégé (ex : chmod)
    redirect_url("modules.php?ModPath={$ModPath}&amp;ModStart={$ModStart}&amp;FmaRep={$FmaRep}&amp;browse=" . rawurlencode(encrypt(dirname($base))));
}
// gestion des types d'extension de fichiers
$att_icons = "";
$handle = opendir("{$racine_fma}/images/upload/file_types");
while (false !== ($file = readdir($handle))) {
    if ($file != "." && $file != "..") {
        $prefix = strtoLower(substr($file, 0, strpos($file, '.')));
        $att_icons[$prefix] = "<img src=\"images/upload/file_types/" . $file . "\" border=\"0\" alt=\"\" />";
    }
}
closedir($handle);
$att_icon_dir = "<img src=\"images/upload/file_types/dir.gif\" border=\"0\" alt=\"\" />";
// Répertoires
$subdirs = "";
$sizeofDir = 0;
コード例 #15
0
 public function indexAction()
 {
     $url = U('current');
     redirect_url($url);
 }
コード例 #16
0
ファイル: reviews.php プロジェクト: Jireck-npds/npds_dune
function del_review($id_del)
{
    global $admin, $NPDS_Prefix;
    settype($id_del, "integer");
    if ($admin) {
        sql_query("DELETE FROM " . $NPDS_Prefix . "reviews WHERE id='{$id_del}'");
        // commentaires
        if (file_exists("modules/comments/reviews.conf.php")) {
            include "modules/comments/reviews.conf.php";
            sql_query("DELETE FROM " . $NPDS_Prefix . "posts WHERE forum_id='{$forum}' AND topic_id='{$id_del}'");
        }
    }
    redirect_url("reviews.php");
}
コード例 #17
0
ファイル: links-1.php プロジェクト: Jireck-npds/npds_dune
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();
}
コード例 #18
0
ファイル: sections.php プロジェクト: Jireck-npds/npds_dune
function new_rub_section($type)
{
    global $hlpfile, $NPDS_Prefix, $aid, $radminsuper, $f_meta_nom, $f_titre, $adminimg;
    include "header.php";
    GraphicAdmin($hlpfile);
    adminhead($f_meta_nom, $f_titre, $adminimg);
    if ($type == "sec") {
        echo '
      <h3>' . adm_translate("Ajouter une nouvelle Sous-Rubrique") . '</h3>
      <form action="admin.php" method="post" name="adminForm">
         <div class="form-group">
            <div class="row">
               <label class="form-control-label col-sm-4" for="rubref">' . adm_translate("Rubriques") . '</label>
               <div class="col-sm-8">
                  <select class="c-select form-control" name="rubref">';
        if ($radminsuper == 1) {
            $result = sql_query("SELECT rubid, rubname FROM " . $NPDS_Prefix . "rubriques ORDER BY ordre");
        } else {
            $result = sql_query("SELECT distinct rubriques.rubid, rubriques.rubname FROM " . $NPDS_Prefix . "rubriques, " . $NPDS_Prefix . "publisujet WHERE publisujet.aid='{$aid}' ORDER BY ordre");
        }
        while (list($rubid, $rubname) = sql_fetch_row($result)) {
            echo '
                  <option value="' . $rubid . '">' . aff_langue($rubname) . '</option>';
        }
        echo '
               </select>
            </div>
         </div>
      </div>
         <div class="form-group">
            <div class="row">
               <label class="form-control-label col-sm-4 col-md-4" for="image">' . adm_translate("Image pour la Sous-Rubrique") . '</label>
               <div class="col-sm-8">
                  <input type="text" class="form-control" name="image" />
               </div>
            </div>
         </div>
         <div class="form-group">
            <label class="form-control-label" for="secname">' . adm_translate("Titre") . '</label>
            <textarea id="secname" class="form-control" name="secname" maxlength="255" rows="2" required="required"></textarea>
            <span class="help-block text-xs-right"><span id="countcar_secname"></span></span>
         </div>
         <div class="form-group">
            <label class="form-control-label" for="introd">' . adm_translate("Texte d'introduction") . '</label>
            <textarea class="tin form-control" name="introd" rows="30"></textarea>';
        echo aff_editeur("introd", '');
        echo '
         </div>';
        droits("0");
        echo '
      <div class="form-group">
         <input type="hidden" name="op" value="sectionmake" />
         <button class="btn btn-primary col-sm-6 col-xs-12 col-md-4" type="submit" /><i class="fa fa-plus-square fa-lg"></i>&nbsp;' . adm_translate("Ajouter") . '</button>
         <button class="btn btn-secondary col-sm-6 col-xs-12 col-md-4" type="button" onclick="javascript:history.back()">' . adm_translate("Retour en arrière") . '</button>
      </div>
      </form>';
    } else {
        if ($type == "rub") {
            if ($radminsuper == 1) {
                echo '
         <h3>' . adm_translate("Ajouter une nouvelle Rubrique") . '</h3>
         <form action="admin.php" method="post" name="adminForm">
            <div class="form-group">
               <label class="form-control-label" for="rubname">' . adm_translate("Nom de la Rubrique") . '</label>
               <textarea id="rubname" class="textbox_no_mceEditor form-control" name="rubname" rows="2" maxlength="255" required="required"></textarea>
               <span class="help-block text-xs-right"><span id="countcar_rubname"></span></span>
            </div>
            <div class="form-group">
               <label class="form-control-label" for="introc">' . adm_translate("Texte d'introduction") . '</label>
               <textarea class="tin form-control" name="introc" rows="30" ></textarea>
            </div>';
                echo aff_editeur("introc", "false");
                echo '
            <div class="form-group">
               <input type="hidden" name="op" value="rubriquemake" />
               <button class="btn btn-primary" type="submit"><i class="fa fa-plus-square fa-lg"></i>&nbsp;' . adm_translate("Ajouter") . '</button>
               <button class="btn btn-secondary" type="button" onclick="javascript:history.back()">' . adm_translate("Retour en arrière") . '</button>
            </div>
         </form>';
            } else {
                redirect_url("admin.php?op=sections");
            }
        }
    }
    echo '
      <script type="text/javascript">
      //<![CDATA[
         $(document).ready(function() {
            inpandfieldlen("rubname",255);
            inpandfieldlen("secname",255);
         });
      //]]>
      </script>';
    adminfoot('fv', '', '', '');
}
コード例 #19
0
ファイル: index.php プロジェクト: hkirsman/tsitaat_com
		{
			$content = $a_path[0] . " has been ".str_replace("http://", "", $config_q["baseurl"])." member since ".date("d.m.Y", $userinfo["user_regdate"]).". He has added 12 quotations, voted 12 times and has 3 favourite quotes.";
		}
		$context["content"] = $content;
		break;
  case "userprofile-favorite-quotes":
    $context["h1"] = "";
		$context["fake_h1"] = _("User") ." ". $a_path[0];

    break;
  case "userprofile-added-quotes":
    echo "lisatud tsitaadid";
    die();
    break;
	default:
		if (!redirect_url($_SERVER["REDIRECT_SCRIPT_URI"]))
		{
			header("HTTP/1.0 404 Not Found"); 
			$context["h1"] = _("");
			$context["fake_h1"] = _("Sorry, but the page was not found!");

			error::log_error($_SERVER["HTTP_HOST"], $_SERVER["SCRIPT_URI"], $_SERVER["HTTP_REFERER"]);
			
			$to = $config_q["admin_email"];
			$subject = "Katkine link " . $_SERVER["HTTP_HOST"] . "'s";
			$body = "Hei, avastasin katkise lingi,\n\n".
			"Täpsemalt:\n".
			"domeen -> " . $_SERVER["HTTP_HOST"] . "\n".
			"katkine link -> " . $_SERVER["SCRIPT_URI"] . "\n".
			"http_referer -> " . $_SERVER["HTTP_REFERER"];
			mail($to, $subject, $body);
コード例 #20
0
ファイル: index.php プロジェクト: neilgirardi/neilgirardi.com
js/jquery-easyexpand.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
	
		$('.closed').easyexpand();
		$('.open').easyexpand({'startClosed' : false });
		$('.ajax').easyexpand(myCallback);
		
		function myCallback() {
			$('.ajax').load('http://neilgirardi.com/portfolio/common_elements/portfolio_sites/jqueryplugin/ajaxcontent/ajax-content.html');
		}
		
	});
</script>
<?php 
echo redirect_url();
?>
<script type="text/javascript">
//<![CDATA[
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22867617-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
//]]>
</script>
</head>
コード例 #21
0
ファイル: reply-new.php プロジェクト: Jireck-npds/npds_dune
            }
        }
        global $subscribe;
        if ($subscribe) {
            if (subscribe_query($userdata['uid'], "forum", $forum)) {
                $sauf = $userdata['uid'];
            }
            subscribe_mail("forum", $topic, $forum, "", $sauf);
        }
        if (isset($upload)) {
            include "modules/upload/upload_forum.php";
            win_upload("forum_npds", $IdPost, $forum, $topic, "win");
            redirect_url("viewtopic.php?forum={$forum}&topic={$topic}&start=9999#last-post");
            die;
        }
        redirect_url("viewforum.php?forum={$forum}");
    } else {
        echo '<p class="text-xs-center">' . translate("You must type a message to post.") . '<br /><br />';
        echo "[ <a href=\"javascript:history.go(-1)\" class=\"noir\">" . translate("Go Back") . "</a> ]</p>";
    }
} else {
    include 'header.php';
    if ($allow_bbcode == 1) {
        include "lib/formhelp.java.php";
    }
    list($topic_title, $topic_status) = sql_fetch_row(sql_query("select topic_title, topic_status from " . $NPDS_Prefix . "forumtopics where topic_id='{$topic}'"));
    $userX = base64_decode($user);
    $userdata = explode(":", $userX);
    $moderator = get_moderator($mod);
    $moderator = explode(" ", $moderator);
    $Mmod = false;
コード例 #22
0
ファイル: friend.php プロジェクト: npds/npds_dune
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}");
}
コード例 #23
0
 public function indexAction()
 {
     $url = U('unsubscribe');
     redirect_url($url);
 }
コード例 #24
0
        $dbName = $conn->selectDB('test');
        $collection = $dbName->users;
        $query = array('_id' => $_POST['user'], 'password' => $_POST['passwd']);
        $cursor = $collection->findOne($query);
        // echo "<pre>";
        // var_dump($cursor);
        // foreach ($cursor as $key => $value) {
        // 	print_r($value);
        // }
        if ($cursor) {
            // echo "set";
            $_SESSION['userid'] = $_POST['user'];
            if (isset($_GET['p'])) {
                redirect_url($_GET['p']);
            } else {
                redirect_url('index.php');
            }
        } else {
        }
    }
    ?>
		

		<?php 
}
// function redirect_url($url,$status_code=303){
// 	header("Location:".$url,true,$status_code);
// 	die();
// }
?>
コード例 #25
0
<?php

include_once ".\\module.php";
session_start();
if (!isset($_SESSION['userid'])) {
    redirect_url('login.php?p=index.php');
}
$mongodb = getMongoDbConnection();
$database = $mongodb->test;
$collection = $database->response;
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
$limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 10;
if (isset($_GET['from'])) {
    $from = $_GET['from'];
}
if (isset($_GET['to'])) {
    $to = $_GET['to'];
}
$skip = ($page - 1) * $limit;
$next = $page + 1;
$prev = $page - 1;
if (isset($from) && isset($to)) {
    $from = $from . " 00:00:00";
    $to = $to . " 00:00:00";
    $search_query = array('timestamp' => array('$gte' => $from, '$lte' => $to));
    $cursor = $collection->find($search_query)->skip($skip)->limit($limit);
} else {
    if (isset($_GET['search'])) {
        $search_string = $_GET['search'];
        $cursor = $collection->find(array('$text' => array('$search' => $search_string)), array('score' => array('$meta' => 'textScore')));
        $cursor = $cursor->sort(array('score' => array('$meta' => 'textScore')))->limit($limit)->skip($skip);
コード例 #26
0
ファイル: editpost.php プロジェクト: Jireck-npds/npds_dune
                if (!($r = sql_query($sql))) {
                    forumerror('0001');
                }
                $sql = "DELETE FROM " . $NPDS_Prefix . "forum_read WHERE topicid = '" . $row['topic_id'] . "'";
                @sql_query($sql);
                redirect_url("viewforum.php?forum={$forum}");
                die;
            } else {
                $result = sql_query("SELECT post_time, poster_id FROM " . $NPDS_Prefix . "posts where topic_id='" . $row['topic_id'] . "' ORDER BY post_id DESC limit 0,1");
                $rowX = sql_fetch_row($result);
                $sql = "UPDATE " . $NPDS_Prefix . "forumtopics SET topic_time = '{$rowX['0']}', current_poster='{$rowX['1']}' WHERE topic_id = '" . $row['topic_id'] . "'";
                if (!($r = sql_query($sql))) {
                    forumerror('0001');
                }
            }
            redirect_url("{$hrefX}?topic=" . $row['topic_id'] . "&forum={$forum}");
        } else {
            opentable();
            echo "<p align=\"center\">" . translate("Your post has NOT been deleted because one or more posts is already attached (TREE forum).") . "</p>";
            closetable();
        }
    }
} else {
    include "header.php";
    if ($allow_bbcode == 1) {
        include "lib/formhelp.java.php";
    }
    $sql = "SELECT p.*, u.uname, u.uid, u.user_sig FROM " . $NPDS_Prefix . "posts p, " . $NPDS_Prefix . "users u WHERE (p.post_id = '{$post_id}') AND (p.poster_id = u.uid)";
    if (!($result = sql_query($sql))) {
        forumerror('0001');
    }
コード例 #27
0
ファイル: index.php プロジェクト: akbarhossain/webid4me
function login_screen($webid)
{
    $title = 'access tokens for ' . $webid;
    head($title);
    $url = redirect_url('http://openid4.me/test/authenticationlogin.php', $webid);
    print '<a href="' . $url . '">openid4.me Test Login Page</a>';
    tail();
}
コード例 #28
0
ファイル: plugins.php プロジェクト: npds/npds_dune
<?php

/************************************************************************/
/* DUNE by NPDS - admin prototype                                       */
/* ===========================                                          */
/*                                                                      */
/* Based on PhpNuke 4.x source code                                     */
/*                                                                      */
/* NPDS Copyright (c) 2002-2015 by Philippe Brunier                     */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
if (!stristr($_SERVER['PHP_SELF'], "admin.php")) {
    Access_Error();
}
include "header.php";
if ($ModPath != '') {
    if (file_exists("modules/{$ModPath}/{$ModStart}.php")) {
        include "modules/{$ModPath}/{$ModStart}.php";
    }
} else {
    redirect_url(urldecode($ModStart));
}
コード例 #29
0
                $end_link = "admin.php?op=modules";
            }
            nmig_End($name_module, $end_link);
            break;
        default:
            nmig_Start($name_module, $txtdeb);
            break;
    }
} elseif ($ModInstall == "" && $ModDesinstall != "") {
    if ($subop == "desinst") {
        include "header.php";
        list($fid) = sql_fetch_row(sql_query("SELECT fid FROM " . $NPDS_Prefix . "fonctions WHERE fnom='" . $ModDesinstall . "'"));
        $result = sql_query("UPDATE " . $NPDS_Prefix . "modules SET minstall='0' WHERE mnom= '" . $ModDesinstall . "'");
        sql_query("DELETE FROM " . $NPDS_Prefix . "droits WHERE d_fon_fid=" . $fid . "");
        $res = sql_query("DELETE FROM " . $NPDS_Prefix . "fonctions WHERE fnom='" . $ModDesinstall . "'");
        redirect_url("admin.php?op=modules");
    }
    include "header.php";
    $display = '
      <div style="text-align: left;">
         <h4 class="text-danger">' . adm_translate("Désinstaller le module ") . ' ' . $ModDesinstall . '.</h4>
         <p><strong>' . adm_translate("La désinstallation automatique des modules n'est pas prise en charge à l'heure actuelle.") . '</strong>
         <p>' . adm_translate("Vous devez désinstaller le module manuellement. Pour cela, référez vous au fichier install.txt de l'archive du module, et faites les opérations inverses de celles décrites dans la section \"Installation manuelle\", et en partant de la fin.") . '
         <p>' . adm_translate("Enfin, pour pouvoir réinstaller le module par la suite avec Module-Install, cliquez sur le bouton \"Marquer le module comme désinstallé\".") . '</p>
      </div>
      <div style="text-align: center;">
      <a href="JavaScript:history.go(-1)" class="btn btn-primary col-xs-12 col-md-6">' . adm_translate("Retour en arriére") . '</a><a href="admin.php?op=Module-Install&amp;ModDesinstall=' . $ModDesinstall . '&amp;subop=desinst" class="btn btn-danger col-xs-12 col-md-6">' . adm_translate("Marquer le module comme désinstallé") . '</a><br />
      </div>
      <br /><br />
      ' . nmig_copyright();
}
コード例 #30
0
 public function payResultAction()
 {
     //        $status = I('get.status','error');
     //        if($status == 'error')
     //        {
     //            $tips = '支付失败!';
     //        }
     //        else
     //        {
     //            $tips = '支付成功!';
     //        }
     //
     //        $jumpUrl = U('User/UserCenter/index');//跳转地址
     //        $waitSecond = 3;//跳转时间
     //
     //        $this->assign("header",'');
     //        $this->assign('status',$status);
     //        $this->assign('waitSecond',$waitSecond);
     //        $this->assign('jumpUrl',$jumpUrl);
     //        $this->assign('tips',$tips);
     //        $this->assign('YZBody',$this->fetch('payResult'));
     //        $this->display(YZ_TEMPLATE);
     $jumpUrl = U('User/UserCenter/index');
     //跳转地址
     redirect_url($jumpUrl);
 }