/** *跳转到指定页面 *@date 2010-8-24 *@time 下午03:00:26 */ function jump() { //跳转到指定页面 $url = mydecode($_GET['url']); $url = explode('||', $url); if ($url['1'] != '0') { $this->iicstat($url['1'], 'ad'); } redirect($url['0']); }
$t4 = 'Kategorie und direkte Unterkategorien'; $t4B = 'Alle Unterkategorien'; $t5 = 'Sortiere nach'; $t6 = 'Namensraum'; $t9 = 'Los!'; print "<body>\n <h1>Flagged Revisions Tool</h1>\n <i>{$t1}</i><br/>\n <form method='get' action='flagged.php'>\n <table>\n <tr><th>{$t2}</th><td><input type='text' name='language' value='{$language}' size='30' /></td></tr>\n <tr><th>{$catname}</th><td><input type='text' name='category' value='' size='30' /></td></tr>\n <tr><th>exclude*</th><th>\n <textarea name='exclude' rows='3' cols='80'></textarea></th>\n </tr>\n <tr><th>{$t3}**</th><td><input type='text' name='depth' value='{$depth}' /> </td></tr>\n <tr><th>{$t6}</th><td><input type='text' name='namespace' value='{$namespace}' /> 0=articles, 14=categories</td></tr>\n <tr><th></th><td><input type='submit' name='doit' value='{$t9}' /></td></tr>\n <tr><th>{$t5}</th><th>\n <Input type = 'Radio' Name ='sortby' value= 'size' checked='checked' >Size\n <Input type = 'Radio' Name ='sortby' value= 'size_reverse' >Size (reverse)\n </tr>\n <tr><th></th><th>\n <Input type = 'Radio' Name ='sortby' value= 'title' >Title\n <Input type = 'Radio' Name ='sortby' value= 'title_reverse' >Title (reverse)\n </tr>\n <tr><th></th><th>\n <Input type = 'Radio' Name ='sortby' value= 'time' >Time\n <Input type = 'Radio' Name ='sortby' value= 'time_reverse' >Time (reverse)\n </tr>\n </table>\n <br/>\n *Format: \"cat1;cat2;cat3\". <br/>\n This might not do what you expect it to do.<br/>\n If you list a category under \"exclude\", this category is not considered<br/>\n in the recursive search for articles. If the article you want to exclude is<br/>\n encountered in a different category during the search, it will still be <br/>\n included.\n <br/>\n <br/>\n ** 1={$t4}, -99 = {$t4B}\n </form>\n <p> <a href='http://toolserver.org/~hroest/'>Zurueck zur Uebersicht</a> </p>\n </body>"; print '</html>'; exit; } // Process input $exclude = str_replace(" ", "_", $exclude_noncode); $exclude = split(";", $exclude); //print $exclude; print "Excluding: "; foreach ($exclude as $ex) { print mydecode($ex) . ";"; } print "<br/>"; //some options are mutually exclusive -- you cannot be fast and sort by time if ($fast == 1) { if ($sortby == 'title' or $sortby == 'title_reverse' or $sortby == 'category') { $myfast = 1; } if ($sortby == 'size' or $sortby == 'size_reverse') { $myfast = 2; } if ($sortby == 'time' or $sortby == 'time_reverse') { $myfast = 99; } } else { $myfast = 99;
/** *修改展会属性 *@date 2010-9-20 *@time 下午01:59:29 */ function attr() { //修改展会属性 $info = Input::getVar($_GET['info']); $info = explode('_', $info); $fld = Input::getVar($_GET['fld']); $clear = Input::getVar($_GET['clear']); if (empty($info['1'])) { $this->error('Wrong parameter!'); } if ($this->is_admin()) { $dao = D("Archives"); $condition = array(); $condition['id'] = $info['1']; $condition['channel'] = $info['0']; $info = $dao->where($condition)->find(); //dump($info); if (empty($info)) { $this->error('Wrong parameter!'); } $data = array(); if (empty($clear)) { if (empty($info['flag'])) { $data['flag'] = $fld; } else { $arr = explode(',', $info['flag']); if (!in_array($fld, $arr, TRUE)) { $data['flag'] = $info['flag'] . ',' . $fld; } else { $this->error('property set!'); } } } else { if (empty($info['flag'])) { $this->error('property canceled!'); } else { $arr = explode(',', $info['flag']); if (in_array($clear, $arr, TRUE)) { foreach ($arr as $v) { if ($v != $clear) { $data['flag'] = $v . ','; } } } else { $this->error('property canceled!'); } } } $data['flag'] = trim($data['flag'], ','); $data['edittime'] = time(); $dao->where($condition)->save($data); $to = mydecode($_GET['to']); $to = empty($_GET['p']) ? $to : $to . '?p=' . $_GET['p']; redirect($to, 3, "Successful release."); } else { $this->error('Wrong parameter!'); } }
/** +---------------------------------------------------------- * 验证订阅的邮件或取消订阅 * @date 2011-3-11 - @time 下午05:54:37 +---------------------------------------------------------- * @static * @access public +---------------------------------------------------------- * @param string +---------------------------------------------------------- * @return void +---------------------------------------------------------- */ function chmail() { //验证订阅的邮件或取消订阅 $key = mydecode($_GET['key']); $key = explode("||", $key); $dao = D("MailList"); $condition = array(); $condition['email'] = $key['0']; $condition['ctime'] = $key['1']; $condition['status'] = $key['2']; $info = $dao->where($condition)->find(); $this->assign("jumpUrl", '/index.html'); if ($info) { $status = $condition['status'] == '1' ? '0' : '1'; $dao->where($condition)->save(array("status" => $status)); $this->success("You request has been sent."); } elseif ($condition['status'] == '1') { $this->error("You've been sucessfully subscribe to Beingfunchina newsletter."); } else { $this->error("You've been unsubscribed sucessfully.Please do not repeat."); } }
public function test() { $url = empty($_GET['url']) ? 'Index:mainframe' : mydecode($_GET['url']); $this->assign('url', $url); $this->display(); }
/** +---------------------------------------------------------- * 更改文章作者 * @date 2011-3-12 - @time 上午10:50:50 +---------------------------------------------------------- * @static * @access public +---------------------------------------------------------- * @param string +---------------------------------------------------------- * @return void +---------------------------------------------------------- */ function ch_uid() { //更改文章作者 $info = mydecode($_GET['info']); empty($info) ? $this->error('Wrong parameter!') : ($info = explode("_", $info)); }