Example #1
0
function securitymessage($subject, $message, $reload = TRUE, $form = FALSE)
{
    global $_G;
    $scuritylang = array('attachsave_1_subject' => '频繁刷新限制', 'attachsave_1_message' => '您访问本站速度过快或者刷新间隔时间小于两秒!请等待页面自动跳转 ...', 'attachsave_2_subject' => '代理服务器访问限制', 'attachsave_2_message' => '本站现在限制使用代理服务器访问,请去除您的代理设置,直接访问本站。', 'attachsave_4_subject' => '页面重载开启', 'attachsave_4_message' => '欢迎光临本站,页面正在重新载入,请稍候 ...');
    $subject = $scuritylang[$subject] ? $scuritylang[$subject] : $subject;
    $message = $scuritylang[$message] ? $scuritylang[$message] : $message;
    if ($_GET['inajax']) {
        ajaxshowheader();
        echo '<div id="attackevasive_1" class="popupmenu_option"><b style="font-size: 16px">' . $subject . '</b><br /><br />' . $message . '</div>';
        ajaxshowfooter();
    } else {
        echo '<html>';
        echo '<head>';
        echo '<title>' . $subject . '</title>';
        echo '</head>';
        echo '<body bgcolor="#FFFFFF">';
        if ($reload) {
            echo '<script language="JavaScript">';
            echo 'function reload() {';
            echo '	document.location.reload();';
            echo '}';
            echo 'setTimeout("reload()", 1001);';
            echo '</script>';
        }
        if ($form) {
            echo '<form action="' . $G['PHP_SELF'] . '" method="post" autocomplete="off">';
        }
        echo '<table cellpadding="0" cellspacing="0" border="0" width="700" align="center" height="85%">';
        echo '  <tr align="center" valign="middle">';
        echo '    <td>';
        echo '    <table cellpadding="10" cellspacing="0" border="0" width="80%" align="center" style="font-family: Verdana, Tahoma; color: #666666; font-size: 11px">';
        echo '    <tr>';
        echo '      <td valign="middle" align="center" bgcolor="#EBEBEB">';
        echo '     	<br /><br /> <b style="font-size: 16px">' . $subject . '</b> <br /><br />';
        echo $message;
        echo '        <br /><br />';
        echo '      </td>';
        echo '    </tr>';
        echo '    </table>';
        echo '    </td>';
        echo '  </tr>';
        echo '</table>';
        if ($form) {
            echo '</form>';
        }
        echo '</body>';
        echo '</html>';
    }
    exit;
}
Example #2
0
        $name = DB::result_first("SELECT name FROM " . DB::table('advertisement_custom') . " WHERE id='{$_G['gp_id']}'");
        if (!submitcheck('submit')) {
            ajaxshowheader();
            showformheader("adv&operation=custom&do=edit&id={$_G['gp_id']}");
            echo $lang['adv_custom_edit'] . '<br /><input name="customnew" class="txt" value="' . htmlspecialchars($name) . '" />&nbsp;' . '<input name="submit" class="btn" type="submit" value="' . $lang['submit'] . '" />&nbsp;' . '<input class="btn" type="button" onclick="location.href=\'' . ADMINSCRIPT . '?action=adv&operation=list\'" value="' . $lang['cancel'] . '" />';
            showformfooter();
            ajaxshowfooter();
        } else {
            $customnew = strip_tags($_G['gp_customnew']);
            if ($_G['gp_customnew'] != $name) {
                DB::update('advertisement_custom', array('name' => $customnew), "id='{$_G['gp_id']}'");
            }
        }
    } elseif ($do == 'delete') {
        if (!submitcheck('submit')) {
            ajaxshowheader();
            showformheader("adv&operation=custom&do=delete&id={$_G['gp_id']}");
            echo $lang['adv_custom_delete'] . '<br /><input name="submit" class="btn" type="submit" value="' . $lang['delete'] . '" />&nbsp;' . '<input class="btn" type="button" onclick="location.href=\'' . ADMINSCRIPT . '?action=adv&operation=list\'" value="' . $lang['cancel'] . '" />';
            showformfooter();
            ajaxshowfooter();
        } else {
            DB::delete('advertisement_custom', "id='{$_G['gp_id']}'");
        }
    }
    dheader('location: ' . ADMINSCRIPT . '?action=adv&operation=list');
}
function encodeadvcode($advnew)
{
    switch ($advnew['style']) {
        case 'code':
            $advnew['code'] = $advnew['code']['html'];
Example #3
0
function showUploadImageForm($tid) {
	ajaxshowheader();
	echo '
		<ul class="fwin-menu">
			<li class="a"><a>'.cplang('qqgroup_ctrl_upload_image').'</a></li>
			<li style="float:right;"><a class="flbc" href="javascript:;" onClick="hideWindow(\'uploadImgWin\')" title="'.cplang('qqgroup_ctrl_close').'">'.cplang('qqgroup_ctrl_close').'</a></li>
		</ul>
		';
	echo '<div class="c">';
	showformheader('cloud&operation=qqgroup&anchor=block&op=uploadImage', 'enctype="multipart/form-data"', 'uploadImage');
	echo '<input type="hidden" name="tid" value="'.$tid.'" />';
	echo '<input type="hidden" name="uploadImageSubmit" value="1" />';
	echo '
			<table class="tb">
				<tr style="display:none;">
					<td id="uploadImageResult" colspan="2" align="center"></td>
				</tr>
				<tr>
					<td width="70" align="right">'.cplang('qqgroup_ctrl_choose_image').'</td>
					<td align="left"><input type="file" name="imageFile" size="30" /></td>
				</tr>
				<tr>
					<td align="right"></td>
					<td align="left">
						<p>'.cplang('qqgroup_ctrl_choose_image_tips').'</p>
					</td>
				</tr>
			</table>
			';
	showformfooter();
	echo '</div>';
	echo '
		<div class="o pns"><button class="pn pnc" onClick="ajaxUploadQQGroupImage();"><span>'.cplang('qqgroup_ctrl_upload_image').'</span></button></div>
		';
	ajaxshowfooter();
}