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


PHP postHead函数代码示例

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


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

示例1: postHead

<?php

//編寫: fra
//繁體化: 風之翎
include 'cfu.php';
postHead('');
$_POST['action'] = isset($_POST['action']) ? $_POST['action'] : 0;
$mode = isset($_GET['action']) ? $_GET['action'] : $_POST['action'];
$_POST["operation"] = isset($_POST["operation"]) ? $_POST["operation"] : false;
if ($CFU_Time >= $TIMEAUTH + $TIME_OUT_TIME || $TIMEAUTH <= $CFU_Time - $TIME_OUT_TIME) {
    echo "連線超時!<br>請重新登入!";
    exit;
}
$db = mysql_connect($DBHost, $DBUser, $DBPass);
mysql_select_db($DBName, $db);
$SQL = "SELECT `password`,`acc_status` FROM `" . $GLOBALS['DBPrefix'] . "phpeb_user_general_info` where `username` = '" . $Pl_Value['USERNAME'] . "'";
$Query = mysql_query($SQL);
$Ac = mysql_fetch_array($Query);
if ($Ac['acc_status'] >= 0 && "fra" != $Pl_Value['USERNAME'] || $Ac['password'] != md5($Pl_Value['PASSWORD']) && $Ac['password'] != $Pl_Value['PASSWORD']) {
    echo "不是管理員或密碼錯誤!";
    $mcfu_time = explode(' ', microtime());
    $cfu_ptime = number_format($mcfu_time[1] + $mcfu_time[0] - $GLOBALS['cfu_stime'], 6);
    echo "<p align=center style=\"font-size: 10pt\">php-eb &copy; 2005-2008 v2Alliance. All Rights Reserved. 版權所有 不得轉載<br>";
    echo "<p align=center style=\"font-size: 10pt\">Manager Script &copy; fra. All Rights Reserved. 版權所有 不得轉載<br>";
    if ($GLOBALS['Show_ptime']) {
        echo "<font style=\"font-size: 7pt\">Processed in " . $cfu_ptime . " second(s).</font></p>";
    }
    exit;
}
//請把fra改成你的名字
//或到 phpeb_user_general_info 資料表中, 把目標 GM 的帳戶資料中, acc_status 一項設為負數
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:manager.php

示例2: player_stats

$Pl = new player_stats();
$Pl->SetUser($Pl_Value['USERNAME']);
$Pl->FetchPlayer();
$Area = ReturnMap($Pl->Player['coordinates']);
$AreaLandForm = ReturnMType($Area['Sys']['type']);
$Area_Org = ReturnOrg($Area['User']['occupied']);
$Pl_Org = $Area['User']['occupied'] != $Pl->Player['organization'] ? ReturnOrg($Pl->Player['organization']) : $Area_Org;
global $Pl_LocalOrgFlag;
$Pl_LocalOrgFlag = 0;
if ($Area['User']['occupied'] == 0) {
    $Pl_LocalOrgFlag = 2;
} elseif ($Area['User']['occupied'] == $Pl->Player['organization']) {
    $Pl_LocalOrgFlag = 1;
}
$mode = isset($_POST['action']) ? $_POST['action'] : '';
postHead('', '../../phpeb_session_dir', $additionalHeader);
$Mining = new mining($DBPrefix, $CFU_Time, $Work_Length, $Base_Unit_Cost);
$Mining->getDetails($Pl->User, $Pl->Player['coordinates'], $Pl->Player['level'], $Pl->Player['organization']);
echo "<font style='font-size: 12pt;'>原料採集</font><hr>";
//
// Make Payment Process
//
if ($mode == 'makePayment') {
    $Mining->makePayment($Pl->Player['cash'], $Pl->Player['organization'], $tax);
}
//
// Mining Process
//
$Mining->doMining();
//
// Main Form
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:mining.php

示例3: postHead

<?php

//Settings
$HTTP_REFERER = '';
//請 Set 作可正常連線位置, cfu.php 內的 「$Allow_AUC」參數
//End of Settings
$NoConnect = 1;
$NoCheckRef = 1;
include 'cfu.php';
postHead('1');
$mode = isset($_GET['action']) ? $_GET['action'] : '';
$VERSION = "<span onmouseover=\"this.style.cursor='pointer';window.status='php-eb 官方網站';\" onmouseout=\"window.status=''\" onClick=\"window.open('http://v2alliance.no-ip.org')\">php-eb Version " . $cSpec . "</span>";
if ($vBdNum) {
    $VERSION .= " &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><font style='font-size: 10px'>Build " . $vBdNum . "</font>";
}
if ($sSpec) {
    $VERSION .= " &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><span style='font-size: 10px' onmouseout=\"window.status=''\" onmouseover=\"this.style.cursor='pointer';window.status='網主 \\'" . $WebMasterName . "\\' 的網站'\" onClick=\"window.open('" . $WebMasterSite . "')\">" . $sSpec . "</span>";
}
if (!$mode) {
    echo "<script type=\"text/JavaScript\">";
    echo "if (screen.availWidth == 1024){";
    echo "moveTo( screen.availWidth/8 , screen.availHeight/8);}";
    echo "else {moveTo(0,0);}";
    echo "resizeTo(800,600);";
    echo "window.status='';";
    echo "</script>";
    echo "<link href='{$General_Image_Dir}/style.css' type=text/css rel=stylesheet>";
    echo "<body oncontextmenu=\"return false;\" style=\"background-image: url('{$General_Image_Dir}/background/atmosphere/atmosphere.jpg')\">";
    echo "<base target=\"slfrm\">";
    echo "<table width='750' height='520'><tr><td height='220'>";
    //Name
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:index2.php

示例4: postHead

<?php

// Tact Adder:
// For v0.50 Version
// Activate Program
// Turn this on (set to true) or delete this file when not using!!
// 不使用時, 記得設定為「True」 或 刪除這個檔案!!
$UseAuth = false;
$Script_Name = 'npcAdder.php';
include '../../cfu.php';
postHead('', '../../phpeb_session_dir');
mt_srand((double) microtime() * 1000000);
$mode = isset($_POST['action']) ? $_POST['action'] : '';
//
// Login and authentications
//
if ($UseAuth) {
    exit;
}
//
// Start Program
//
?>

</head>
<body>

<?php 
if ($mode == 'process') {
    $sql = "SELECT COUNT(*) FROM " . $GLOBALS['DBPrefix'] . "phpeb_user_general_info WHERE regkey = 'npc'; ";
    $query = mysql_query($sql);
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:npcAdder.php

示例5: postHead

<?php

if ($mode != 'proc') {
    echo 'Invalid Action';
    exit;
}
//php-eb Game Screen Base Unit
postHead(1);
//Assign Variables
$User = $Pl_Value['USERNAME'];
$Password = $Pl_Value['PASSWORD'];
//Fetch Player Information
include_once 'includes/sfo.class.php';
$Pl = new player_stats();
$Pl->SetUser($User);
$Pl->FetchPlayer(true, false, ', `request`');
$Player =& $Pl->Player;
//Adjust to user's setting
if ($Player['gen_img_dir']) {
    $General_Image_Dir = $Player['gen_img_dir'];
}
if ($Player['unit_img_dir']) {
    $Unit_Image_Dir = $Player['unit_img_dir'];
}
if ($Player['base_img_dir']) {
    $Base_Image_Dir = $Player['base_img_dir'];
}
//Area and Organization
$Area = ReturnMap($Player['coordinates']);
$AreaLandForm = ReturnMType($Area["Sys"]["type"]);
$LandFormBg = ReturnMBg($Area["Sys"]["type"]);
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:gmscrn_base.php


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