本文整理汇总了PHP中acceptrequest函数的典型用法代码示例。如果您正苦于以下问题:PHP acceptrequest函数的具体用法?PHP acceptrequest怎么用?PHP acceptrequest使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了acceptrequest函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: admin_convert
$saved = 1;
} else {
$savetext .= "\$config['{$key}']='" . admin_convert(stripslashes($val)) . "';\n";
}
}
if ($saved != 1) {
$savetext .= "\$config['urlrewritemethod']='{$urlrewritesta}';\n";
}
if (writetofile("data/config.php", $savetext)) {
catchsuccess($lna[1094], "{$lna[39]}|admin.php");
} else {
catcherror($lna[66] . "data/config.php");
}
}
if ($job == 'urlrewriteguide') {
acceptrequest('servertype,serverroot');
$servertype = floor($servertype);
$serverroot = safe_convert(stripslashes($serverroot));
if (!$servertype || !$serverroot) {
if (strstr(PHP_OS, 'WIN')) {
$IIScheck = 'checked';
} else {
$Apachecheck = 'checked';
}
$possibleroot = pathinfo($_SERVER['PHP_SELF']);
$possibleroot = $possibleroot['dirname'] . '/';
$display_overall .= highlightadminitems('urlrewrite', 'misc');
$display_overall .= <<<eot
<table class='tablewidth' align=center cellpadding=4 cellspacing=0>
<tr>
<td width=160 class="sectstart">
示例2: die
</td></tr>
<tr class='sect'>
<td colspan=2 align=center class="sectbar">
{$lna[211]} <!--<input type=radio name='opt' value='combine'>{$lna[212]}<input type=text size=6 name='newtagname'> --> <input type=radio name='opt' value='del'>{$lna[78]} <input type=radio name='opt' value='counttags'><acronym title="{$lna[1184]}">{$lna[1183]}</acronym></a> <input type=button value="{$lna[64]}" class='formbutton' onclick="adminSubmitAjax(1);">
</td></tr>
</table>
</form>
eot;
if ($ajax == 'on') {
die($display_overall_plus);
} else {
$display_overall .= $display_overall_plus;
}
}
if ($job == 'batchtags') {
acceptrequest('selid,opt');
if (!is_array($selid)) {
catcherror($lna[213]);
}
if ($opt == 'del') {
for ($i = 0; $i < count($selid); $i++) {
$blog->query("UPDATE `{$db_prefix}blogs` SET tags=replace(tags, '>{$selid[$i]}>', '>')");
$blog->query("DELETE FROM `{$db_prefix}tags` WHERE `tagname`='{$selid[$i]}'");
}
}
if ($opt == 'counttags') {
$all_tagentries = $blog->getarraybyquery("SELECT `tags` FROM `{$db_prefix}blogs` WHERE tags<>'' AND tags<>'>'");
$all_tag_lists = @implode('', $all_tagentries['tags']);
$all_tag_lists = @explode('>', $all_tag_lists);
$counted_list = array_count_values($all_tag_lists);
for ($i = 0; $i < count($selid); $i++) {
示例3: time
$siteid = time() . rand(0, 10);
if (preg_search($sitename, $forbidden['banword']) || preg_search($siteintro, $forbidden['banword']) || preg_search($siteurl, $forbidden['banword']) || preg_search($sitename, $forbidden['suspect']) || preg_search($siteintro, $forbidden['suspect']) || preg_search($siteurl, $forbidden['suspect'])) {
catcherror($lnc[214]);
}
$addline = "<?PHP exit();?><|>{$siteid}<|>{$sitename}<|>{$siteurl}<|>{$sitelogo}<|>{$siteintro}<|>\n";
$filename = "data/cache_applylinks.php";
$oldcontent = @readfromfile($filename);
$content = $addline . $oldcontent;
if (!writetofile($filename, $content)) {
catcherror($lnc[7] . $filename);
} else {
catchsuccess($lnc[180], "{$lnc[163]}|index.php");
}
}
if ($job == 'ajaxverify') {
acceptrequest('savecookie,securitycode');
$savecookie = floor($savecookie);
if ($config['loginvalidation'] == 1) {
if ($db_defaultsessdir != 1) {
session_save_path("./{$db_tmpdir}");
}
session_cache_limiter("private, must-revalidate");
session_start();
if ($securitycode == '' || strtolower($securitycode) != strtolower($_SESSION['code'])) {
catcherror($lnc[165]);
}
}
$password = md5($_POST['password']);
$username = safe_convert(mystrtolower($_POST['username']));
$try = $blog->getbyquery("SELECT * FROM `{$db_prefix}user` WHERE LOWER(username)='{$username}' AND `userpsw`='{$password}'");
if (!is_array($try)) {
示例4: getblogs
$tagshow = "{$lnc[189]}";
}
$m_b = new getblogs();
$returnurl = "tag.php?page=%s";
$pagebar = $m_b->make_pagebar($page, $mbcon['pagebaritems'], $returnurl, $alltagcounter, $tagperpage, 1);
$t = new template();
$section_tag = $t->set('taglist', array('tagcategory' => $lnc[190], 'tagcontent' => $tagshow, 'tagextra' => "<div align='right'>{$lnc[191]}</div>"));
$section_body_main = $t->set('contentpage', array('title' => 'Tags', 'contentbody' => $section_tag));
announcebar();
$iftoppage = $mbcon['pagebarposition'] == 'down' ? 'none' : 'block';
$ifbottompage = $mbcon['pagebarposition'] == 'up' ? 'none' : 'block';
$bodymenu = $t->set('mainpage', array('pagebar' => $pagebar, 'iftoppage' => $iftoppage, 'ifbottompage' => $ifbottompage, 'ifannouncement' => $ifannouncement, 'topannounce' => $topannounce, 'mainpart' => $section_body_main, 'currentpage' => $pageitems['currentpage'], 'previouspageurl' => $pageitems['previouspageurl'], 'nextpageurl' => $pageitems['nextpageurl'], 'turningpages' => $pageitems['turningpages'], 'totalpages' => $pageitems['totalpages'], 'previouspageexists' => $pageitems['previouspageexists'], 'nextpageexists' => $pageitems['nextpageexists']));
$pagetitle = "Tags - ";
}
if ($job == 'show') {
acceptrequest('mode');
if ($mode == 1 || $mode == 2) {
$mbcon['tag_list'] = $mode - 1;
} else {
$mode = $mbcon['tag_list'] + 1;
}
$m_b = new getblogs();
if ($tag === '') {
catcherror($lnc[192]);
}
$tag = str_replace(''', "\\'", $tag);
$allentries = $blog->getgroupbyquery("SELECT * FROM `{$db_prefix}tags` WHERE `tagname`='{$tag}' LIMIT 0,1");
if (!is_array($allentries[0]) || $allentries[0]['tagentry'] == '<end>' || $allentries[0]['tagcounter'] == 0) {
$section_body_main[] = "<br/><div align='center'><span style='font-size: 14px;'>{$lnc[186]}</span></div><br/>";
} else {
$taginfo = $allentries[0];
示例5: die
die('Access Denied.');
}
include_once "data/cache_adminskinlist.php";
$csslocation = "admin/theme/{$currentadminskin}/common.css";
$fonticon = "admin/theme/{$currentadminskin}/font-icon.css";
$themename = $currentadminskin;
$adminitemperpage = 35;
if (file_exists("lang/{$langback}/tips.php")) {
include_once "lang/{$langback}/tips.php";
} else {
include_once "admin/tips.php";
}
$trmd = rand(0, 9);
$daytip = $showtips[$trmd];
if ($act == 'edit' || $act == 'page') {
acceptrequest('useeditor');
$useeditor = basename($useeditor);
if ($useeditor && file_exists("editor/{$useeditor}/editordef.php")) {
require "editor/{$useeditor}/editordef.php";
} else {
$useeditor = $mbcon['editortype'];
require "editor/{$useeditor}/editordef.php";
}
$adminclassshow['new'] = '_active';
}
$adminclassshow[$act] = '_active';
$shutajax = $config['closeadminajax'] == '1' ? 1 : 0;
$messageblock = $flset['guestbook'] != 1 ? "<span class=\"ahb{$adminclassshow['message']}\"><li onmouseover=\"adminitemhover('message',this)\"><a href=\"admin.php?act=message\">{$lna[7]}</a></li></span>" : '';
$display_overall .= <<<eot
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="UTF-8">
示例6: acceptrequest
</td></tr>
<tr><td class="hiddenitem">
<b>{$lna[830]}</b>
</td></tr>
<tr><td class="visibleitem">
<ul><li><font color=red>{$lna[892]}</font></li><li>{$lna[831]}</li><li>{$lna[833]}</li></ul>
</td></tr>
</table>
<br><br>
<div align=center><input type=submit value="{$lna[64]}" class='formbutton'> <input type=reset value="{$lna[65]}" class='formbutton'></div>
eot;
}
if ($job == 'doimport') {
acceptrequest('imtype,impause,srcindex,targetcate,nonstop', 1, 'post');
if ($imtype == 'xml') {
if (!file_exists("bak/{$srcindex}")) {
catcherror($lna[856]);
} else {
$tmp = readfromfile("bak/{$srcindex}");
if (strstr($tmp, ".gz") && !function_exists('gzopen')) {
catcherror($lna[857]);
}
}
$display_overall .= highlightadminitems('import', 'carecenter');
$display_overall .= <<<eot
<script type="text/javascript">
var dateObjexp= new Date();
dateObjexp.setSeconds(7200);
setCookie ('endnumber', '0', dateObjexp, null, null, false);
示例7: Copyright
<?php
/* -----------------------------------------------------
Bo-Blog 2 : The Blog Reloaded.
<<A Bluview Technology Product>>
禁止使用Windows记事本修改文件,由此造成的一切使用不正常恕不解答!
PHP+MySQL blog system.
Code: Bob Shen
Offical site: http://www.bo-blog.com
Copyright (c) Bob Shen 中国-上海
In memory of my university life
------------------------------------------------------- */
if (!defined('VALIDREQUEST')) {
die('Access Denied.');
}
acceptrequest('pageid,pagealias');
$itemid = $pagealias ? safe_convert($pagealias) : floor($pageid);
$m_b = new getblogs();
$records = $pagealias ? $m_b->getgroupbyquery("SELECT * FROM `{$db_prefix}pages` WHERE `pagealias`='{$itemid}'") : $m_b->getgroupbyquery("SELECT * FROM `{$db_prefix}pages` WHERE `pageid`='{$itemid}'");
if (is_array($records)) {
$section_body_main = $m_b->output_page($records[0]);
} else {
catcherror($lnc[186]);
}
//Load plugins
$section_body_main[0] = plugin_get('custompagebegin') . $section_body_main[0];
$section_body_main[] = plugin_get('custompageend');
$plugin_closesidebar = $records[0]['closesidebar'] == 1 ? 0 : 1;
if ($plugin_closesidebar == 1) {
$elements['mainpage'] = str_replace("class=\"content\"", "class=\"content-wide\"", $elements['mainpage']);
}
示例8: getblogs
$partialquery = "SELECT * FROM `{$db_prefix}blogs` WHERE `blogid`='{$blogid}' AND `property`<'3' LIMIT 1";
}
$m_b = new getblogs();
$records = $m_b->getbyquery($partialquery);
if (!is_array($records) || $records['blogid'] != $blogid) {
catcherror($lnc[211]);
}
if ($blogpsw != $records['blogpsw']) {
catcherror($lnc[297]);
}
$return_main = $m_b->make_viewentry($records, $way, true);
setcookie("entrypassword{$blogid}", $blogpsw);
catchsuccess($return_main);
}
if ($job == 'getreplyonly') {
acceptrequest('repid,reppsw,way,onetimecounter');
$repid = floor($repid);
$reppsw = md5($reppsw);
$tablename = $way == 'reply' ? 'replies' : 'messages';
$partialquery = "SELECT * FROM `{$db_prefix}{$tablename}` WHERE `repid`='{$repid}' LIMIT 1";
$m_b = new getblogs();
$records = $m_b->getbyquery($partialquery);
if (!is_array($records) || $records['repid'] != $repid) {
catcherror($lnc[305]);
}
if ($reppsw != $records['reppsw']) {
catcherror($lnc[297]);
}
$records['reppsw'] = '';
$records['reproperty'] = '0';
if ($way == 'reply') {
示例9: writetofile
$newcontent = "<?PHP\n\$langfront=\"{$newlangf}\";\n\$langback=\"{$newlangb}\";\n@include_once (\"lang/{$newlangf}/common.php\");";
writetofile("data/language.php", $newcontent);
catchsuccess("Language set has been changed. 语言包设置完成。 語言包設置完成。");
}
if ($job == 'refreshadminskinlist' || $job == 'selectadminskin') {
$handle = opendir("admin/theme/");
if (!$handle) {
catcherror("{$lna[155]} admin/theme/ {$lna[156]}<ul><li>{$lna[157]}</li><li>{$lna[158]}</li><li>{$lna[159]}</li></ul>");
}
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && is_dir("admin/theme/{$file}")) {
$out .= "\$adminskin[]='{$file}';\n";
}
}
if ($job == 'selectadminskin') {
acceptrequest('targetskin');
$targetskin = basename($targetskin);
if ($targetskin) {
$currentadminskin = $targetskin;
}
}
$sleout = "<?PHP\n" . $out . "\$currentadminskin='{$currentadminskin}';";
writetofile("data/cache_adminskinlist.php", $sleout);
header("Location: admin.php");
}
if ($job == 'funclock') {
if (sizeof($flset) < 1) {
$flset = array('tags' => 0, 'weather' => 0, 'avatar' => 0, 'star' => 0, 'guestbook' => 0, 'modeselectable' => 0);
}
$uidesc = array('tags' => $lnc[288], 'weather' => $lna[301], 'avatar' => $lna[881], 'star' => $lnc[93], 'guestbook' => $lnc[91], 'modeselectable' => "{$lnc[183]}/{$lnc[185]}");
$pref_leftchar = "200";
示例10: acceptrequest
<input type=hidden name=newldescs id=newldescs>
<div align=center><br><input type=button value="{$lna[64]}" class='formbutton' onclick="saveldata();"> <input type=button onclick='addneweditline();' value="{$lna[1150]}" class='formbutton'> <input type=button onclick='sresetldata();' value="{$lna[65]}" class='formbutton'></div>
</form>
<br><br><br>
<table class='tablewidth' align=center cellpadding=4 cellspacing=0>
<tr><td>
<b>{$lna[1106]}</b>
<div style="width:100%; border: 1px solid #ccc; height: 210px; overflow: auto;">{$langstext}</div>
<br><br>
{$lna[1107]}
</td></tr></table>
eot;
}
if ($job == 'savelangspec') {
acceptrequest('newlnums,newldescs');
if ($newlnums == '' || $newldescs == '') {
catcherror($lna[241]);
}
$savelnum = @explode(',', $newlnums);
$saveldesc = @explode(',', $newldescs);
$savedata = $savedata2 = "<?php\n";
for ($i = 0; $i < count($savelnum); $i++) {
if ($savelnum[$i] == '') {
continue;
}
$savedata .= "\$lnc[{$savelnum[$i]}]='" . admin_convert($saveldesc[$i]) . "';\n";
$savedata2 .= "\$lncoverwrite[{$savelnum[$i]}]='" . admin_convert($saveldesc[$i]) . "';\n";
}
if (!writetofile("data/langspec.php", $savedata)) {
catcherror($lna[66] . "data/langspec.php");
示例11: Copyright
/* -----------------------------------------------------
Bo-Blog 2 : The Blog Reloaded.
<<A Bluview Technology Product>>
禁止使用Windows记事本修改文件,由此造成的一切使用不正常恕不解答!
PHP+MySQL blog system.
Code: Bob Shen
Offical site: http://www.bo-blog.com
Copyright (c) Bob Shen 中国-上海
In memory of my university life
------------------------------------------------------- */
define("noCounter", 1);
require_once "global.php";
include_once "data/mod_config.php";
include_once "data/cache_adminlist.php";
acceptrequest('go');
if ($config['blogopen'] != 1 && $act != 'login') {
exit;
}
if ($go) {
@(list($job, $itemid) = @explode('_', basename($go)));
}
if (!$job) {
$job = 'main';
} else {
$job = basename($job);
}
$itemid = floor($itemid);
$seed = 0;
//Begin get email address
$admin_ids = @implode(',', array_keys($adminlist));
示例12: define
define("ADMIN_LOGIN", 1);
$m_b = new getblogs();
$ajaxresult = $m_b->single_message($thiscommentwithreply[0]);
catchsuccess($ajaxresult);
}
} else {
checkpermission('CP');
confirmpsw();
//Re-check password
}
if ($job == 'deladminreply') {
$blog->query("UPDATE `{$db_prefix}messages` SET `adminrepcontent`='', `adminreplier`='', `adminrepid`='0',`adminreptime`='0', `adminrepeditorid`='0', `adminrepeditor`='', `adminrepedittime`='0' WHERE `repid`='{$repid}'");
catchsuccess($finishok2, array($backtoprevious, $backtoindex, $backtodefault));
}
if ($job == 'delreply') {
acceptrequest('returnurl');
if (!$returnurl) {
$returnurl = "admin.php?go=message_default";
}
if (!is_array($repid)) {
$tmp_array[0] = $repid;
$repid = $tmp_array;
}
for ($i = 0; $i < count($repid); $i++) {
$delrange[] = "`repid`='{$repid[$i]}'";
}
$querydel = @implode(' OR ', $delrange);
if (count($repid) > 0) {
$blog->query("DELETE FROM `{$db_prefix}messages` WHERE {$querydel}");
$countreps = $blog->countbyquery("SELECT COUNT(repid) FROM `{$db_prefix}messages` WHERE `reproperty`<>2");
$blog->query("UPDATE `{$db_prefix}counter` SET `messages`='{$countreps}'");
示例13: Copyright
<?php
/* -----------------------------------------------------
Bo-Blog 2 : The Blog Reloaded.
<<A Bluview Technology Product>>
禁止使用Windows记事本修改文件,由此造成的一切使用不正常恕不解答!
PHP+MySQL blog system.
Code: Bob Shen
Offical site: http://www.bo-blog.com
Copyright (c) Bob Shen 中国-上海
In memory of my university life
------------------------------------------------------- */
if (!defined('VALIDADMIN')) {
die('Access Denied.');
}
acceptrequest('blogid,ajax');
checkpermission('CP');
if ($ajax == 'on') {
$in_ajax_mode = 1;
}
checkpermission('AddEntry');
if ($ajax == 'on' && $cancel != '') {
die($cancel);
}
$blogid = floor($blogid);
$blog->query("UPDATE `{$db_prefix}blogs` SET `starred`=`starred`+1 WHERE `blogid`='{$blogid}'");
if ($ajax != 'on') {
$urlreturn = $_SERVER['HTTP_REFERER'] == '' ? "index.php" : $_SERVER['HTTP_REFERER'];
header("Location: {$urlreturn}");
} else {
die('ok');
示例14: define
------------------------------------------------------- */
define('isIndex', 1);
$begintime = getmicrotime();
$blogplugin = $section_header = $section_footer = $section_sidebar = $section_prebody = $dlstat = $blogitem = array();
require_once "global.php";
include_once "data/allmods.php";
include_once "data/weather.php";
include_once "data/cache_emot.php";
include_once "data/cache_emsel.php";
include_once "data/cache_adminlist.php";
$isSafeMode = $_REQUEST['safemode'] == 1 || $_COOKIE['safemode'] == 1 ? true : false;
if (!$isSafeMode) {
include_once "data/modules.php";
include_once "data/plugin_enabled.php";
}
acceptrequest('act,go,page,part');
if (!isset($page) || !is_numeric($page) || $page <= 0) {
$page = 1;
} else {
$page = floor($page);
}
$part = floor($part);
if (empty($part)) {
$part = 1;
}
$pageitems = '';
if ($config['blogopen'] != 1 && !defined('isLogin')) {
if ($permission['CP'] == 1) {
$config['message_off'] .= "<br/><ul><li><a href='admin.php'>{$lnc[107]}</a></li></ul>";
}
catcherror($config['message_off']);
示例15: die
<hr>
{$ruletemplate}
<hr>
</div>
<br>
<div align=center><input type='button' value="{$lna[64]}" class='formbutton' onclick="adminSubmitAjax(1);"> <input type=reset value="{$lna[65]}" class='formbutton'></div>
</td></tr></table></form>
eot;
if ($ajax == 'on') {
die($display_overall_plus);
} else {
$display_overall .= $display_overall_plus;
}
}
if ($job == 'urlrewritesave') {
acceptrequest('urlrewritesta');
$urlrewritesta = floor($urlrewritesta);
$savetext = "<?PHP\n\$db_server='{$db_server}';\n\$db_username='{$db_username}';\n\$db_password='{$db_password}';\n\$db_name='{$db_name}';\n\$db_prefix='{$db_prefix}';\n\$db_410='{$db_410}';\n\$db_tmpdir='{$db_tmpdir}';\n\$db_defaultsessdir='{$db_defaultsessdir}';\n";
while (@(list($key, $val) = @each($config))) {
if ($key == 'urlrewritemethod') {
$savetext .= "\$config['{$key}']='{$urlrewritesta}';\n";
$saved = 1;
} else {
$savetext .= "\$config['{$key}']='" . admin_convert(stripslashes($val)) . "';\n";
}
}
if ($saved != 1) {
$savetext .= "\$config['urlrewritemethod']='{$urlrewritesta}';\n";
}
if (writetofile("data/config.php", $savetext)) {
if ($ajax == 'on') {