本文整理汇总了PHP中AdminPage::isPostBack方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminPage::isPostBack方法的具体用法?PHP AdminPage::isPostBack怎么用?PHP AdminPage::isPostBack使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminPage
的用法示例。
在下文中一共展示了AdminPage::isPostBack方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DB
require_once FS_ROOT . "/../../www/lib/util.php";
require_once FS_ROOT . "/../../www/lib/nzbinfo.php";
require_once FS_ROOT . "/../../www/lib/category.php";
require_once FS_ROOT . "/../../www/lib/releases.php";
if (!empty($argc)) {
echo "\n\n***WARNING*** : This method of importing is deprecated - you should use /misc/update_scripts/import.php\n\n\n";
die;
}
$db = new DB();
$page = new AdminPage();
$nzb = new NZB();
$filestoprocess = array();
$browserpostednames = array();
$cat = new Category();
$releases = new Releases();
if ($page->isPostBack()) {
$retval = "";
//
// Via browser, build an array of all the nzb files uploaded into php /tmp location
//
if (isset($_FILES["uploadedfiles"])) {
foreach ($_FILES["uploadedfiles"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["uploadedfiles"]["tmp_name"][$key];
$name = $_FILES["uploadedfiles"]["name"][$key];
$filestoprocess[] = $tmp_name;
$browserpostednames[$tmp_name] = $name;
}
}
}
$groups = $db->query("SELECT ID, name FROM groups");
示例2: DB
<?php
require_once "config.php";
require_once WWW_DIR . "/lib/adminpage.php";
require_once WWW_DIR . "/lib/framework/db.php";
$db = new DB();
if (empty($argc)) {
$page = new AdminPage();
}
$filestoprocess = array();
$browserpostednames = array();
$viabrowser = false;
if (!empty($argc) || $page->isPostBack()) {
$retval = "";
//
// Via browser, build an array of all the nzb files uploaded into php /tmp location
//
if (isset($_FILES["uploadedfiles"])) {
foreach ($_FILES["uploadedfiles"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["uploadedfiles"]["tmp_name"][$key];
$name = $_FILES["uploadedfiles"]["name"][$key];
$filestoprocess[] = $tmp_name;
$browserpostednames[$tmp_name] = $name;
$viabrowser = true;
}
}
}
if (!empty($argc)) {
$strTerminator = "\n";
$path = $argv[1];