本文整理汇总了PHP中validateUserQuiet函数的典型用法代码示例。如果您正苦于以下问题:PHP validateUserQuiet函数的具体用法?PHP validateUserQuiet怎么用?PHP validateUserQuiet使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了validateUserQuiet函数的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: preprocess
public function preprocess()
{
// maintain user logins longer
refreshSession();
if (validateUserQuiet('batches')) {
$this->audited = 0;
}
// autoclear old data from clipboard table on intial page load
$clipboard = $this->connection->tableDefinition('batchCutPaste');
if (isset($clipboard['tdate'])) {
$this->connection->query('DELETE FROM batchCutPaste WHERE tdate < ' . $this->connection->curdate());
}
$this->addRoute('get<id><paste>', 'post<id><addUPC>', 'post<id><addLC>', 'post<id><upc><price>', 'post<id><autotag>', 'post<id><force>', 'post<id><unsale>', 'post<id><limit>', 'post<id><upc><uid><cut>', 'post<id><upc><price><qty>', 'delete<id><upc>', 'post<id><upc><swap>', 'post<id><qualifiers><discount>', 'post<id><trim>', 'post<id><storeID>');
return parent::preprocess();
}
开发者ID:phpsmith,项目名称:IS4C,代码行数:15,代码来源:EditBatchPage.php
示例2: body_content
function body_content()
{
$priv = validateUserQuiet('admin');
$options = 'all';
if (!$priv) {
$options = 'limited';
}
ob_start();
/* password change or reset only allowed if not using
UNIX or LDAP passwords */
echo "Welcome {$this->current_user}";
echo "<ul>";
if ($options == 'all') {
echo '<li><a href="AuthClassesPage.php">View authorization classes</a></li>';
echo '<li><a href="AuthClassesPage.php?new=1">Create authorization classes</a></li>';
echo '<li><a href="AuthClassesPage.php?edit=1">Edit authorization classes</a></li>';
echo '<li><a href="AuthClassesPage.php?remove=1">Delete authorization classes</a></li>';
echo "<br />";
echo '<li><a href="AuthUsersPage.php">View Users</a></li>';
echo '<li><a href="AuthUsersPage.php?detail=1">View User\'s Authoriztions</a></li>';
echo '<li><a href="AuthUsersPage.php?new=1">Create User</a></li>';
echo '<li><a href="AuthUsersPage.php?newAuth=1">Add Authorization to User</a></li>';
echo '<li><a href="AuthUsersPage.php?remove=1">Delete User</a></li>';
echo '<li><a href="AuthUsersPage.php?removeAuth=1">Delete Authorization from User</a></li>';
if (!$this->config->get('AUTH_SHADOW', false) && !$this->config->get('AUTH_LDAP', false)) {
echo '<li><a href="AuthUsersPage.php?reset=1">Reset a User\'s password</a></li>';
}
echo "<br />";
echo '<li><a href="AuthGroupsPage.php">View Groups</a></li>';
echo '<li><a href="AuthGroupsPage.php?detail=1">View Details of a Group</a></li>';
echo '<li><a href="AuthGroupsPage.php?new=1">Create a Group</a></li>';
echo '<li><a href="AuthGroupsPage.php?newUser=1">Add User to a Group</a></li>';
echo '<li><a href="AuthGroupsPage.php?newAuth=1">Add Authorization to a Group</a></li>';
echo '<li><a href="AuthGroupsPage.php?remove=1">Delete a Group</a></li>';
echo '<li><a href="AuthGroupsPage.php?removeUser=1">Delete User from Group</a></li>';
echo '<li><a href="AuthGroupsPage.php?removeAuth=1">Delete Authorization from Group</a></li>';
echo "<br />";
echo "<li><a href=AuthPosePage.php>Switch User</a></li>";
}
// The 'limited' options
if (!$this->config->get('AUTH_SHADOW', false) && !$this->config->get('AUTH_LDAP', false)) {
echo "<li><a href=AuthChangePassword.php>Change password</a></li>";
}
echo "</ul>";
return ob_get_clean();
}
开发者ID:phpsmith,项目名称:IS4C,代码行数:46,代码来源:AuthIndexPage.php
示例3: preprocess
function preprocess()
{
global $FANNIE_URL, $FANNIE_WINDOW_DRESSING;
$this->canDeleteItems = validateUserQuiet('delete_items');
$this->canEditItems = validateUserQuiet('pricechange');
$this->excel = FormLib::get_form_value('excel', False);
if ($this->excel) {
echo $this->list_content();
return false;
}
if (FormLib::get_form_value('ajax') !== '') {
$this->ajax_response();
return false;
}
if (FormLib::get_form_value('supertype') !== '') {
$this->mode = 'list';
}
return true;
}
开发者ID:phpsmith,项目名称:IS4C,代码行数:19,代码来源:ProductListPage.php
示例4: preprocess
function preprocess()
{
global $FANNIE_OP_DB;
// maintain user logins longer
refreshSession();
if (validateUserQuiet('batches')) {
$this->audited = 0;
}
$this->con = FannieDB::get($FANNIE_OP_DB);
// autoclear old data from clipboard table on intial page load
$clipboard = $this->con->tableDefinition('batchCutPaste');
if (isset($clipboard['tdate'])) {
$this->con->query('DELETE FROM batchCutPaste WHERE tdate < ' . $this->con->curdate());
}
$this->__routes[] = 'post<newType><newName><newStart><newEnd><newOwner>';
$this->__routes[] = 'post<id><batchName><batchType><startDate><endDate><owner>';
$this->__routes[] = 'get<mode><filter><max>';
$this->__routes[] = 'post<delete><id>';
return parent::preprocess();
}
开发者ID:phpsmith,项目名称:IS4C,代码行数:20,代码来源:BatchListPage.php
示例5: header
<?php
include '../../config.php';
include_once $FANNIE_ROOT . 'classlib2.0/FannieAPI.php';
include_once $FANNIE_ROOT . 'src/SQLManager.php';
$dbc = FannieDB::get($FANNIE_OP_DB);
$sql = $dbc;
include_once $FANNIE_ROOT . 'auth/login.php';
if (!validateUserQuiet('editmembers') && !validateUserQuiet('editmembers_csc') && !validateUserQuiet('viewmembers')) {
$url = $FANNIE_URL . 'auth/ui/loginform.php?redirect=' . $_SERVER['PHP_SELF'];
header('Location: ' . $url);
return;
}
//include('../db.php');
include 'memAddress.php';
$username = validateUserQuiet('editmembers');
if (isset($_GET['memNum'])) {
$memID = $_GET['memNum'];
} else {
$memID = $_POST['memNum'];
}
/* audit logging */
$uid = getUID($username);
$auditQ = "insert custUpdate select " . $sql->now() . ",{$uid},1,\n CardNo,personNum,LastName,FirstName,\n CashBack,Balance,Discount,ChargeLimit,ChargeOK,\n WriteChecks,StoreCoupons,Type,memType,staff,SSI,Purchases,\n NumberOfChecks,memCoupons,blueLine,Shown,id from custdata where cardno={$memID}";
//$auditR = $sql->query($auditQ);
$MI_FIELDS = array();
$memNum = $_POST['memNum'];
$MI_FIELDS['street'] = $_POST['address1'] . (!empty($_POST['address2']) ? "\n" . $_POST['address2'] : '');
$MI_FIELDS['city'] = $_POST['city'];
$MI_FIELDS['state'] = $_POST['state'];
$MI_FIELDS['zip'] = $_POST['zip'];
开发者ID:phpsmith,项目名称:IS4C,代码行数:31,代码来源:insertEdit.php
示例6: dirname
* SpecialOrderContact
* SpecialOrderStatus
Values are still maintained in the old tables, but the
new SpecialOrders table is used for lookups.
*/
include dirname(__FILE__) . '/../config.php';
if (!class_exists('FannieAPI')) {
include $FANNIE_ROOT . 'classlib2.0/FannieAPI.php';
}
if (!function_exists('checkLogin')) {
include $FANNIE_ROOT . 'auth/login.php';
}
$dbc = FannieDB::get($FANNIE_OP_DB);
$TRANS = $FANNIE_TRANS_DB . $dbc->sep();
$canEdit = false;
if (validateUserQuiet('ordering_edit')) {
$canEdit = true;
}
if (!isset($_REQUEST['action'])) {
return;
}
$orderID = isset($_REQUEST['orderID']) ? (int) $_REQUEST['orderID'] : '';
switch ($_REQUEST['action']) {
case 'loadCustomer':
if (isset($_REQUEST['nonForm'])) {
echo getCustomerNonForm($orderID);
} else {
echo getCustomerForm($orderID);
}
break;
case 'reloadMem':
开发者ID:phpsmith,项目名称:IS4C,代码行数:31,代码来源:ajax-calls.php
示例7: validateUserQuiet
<?php
include '../../config.php';
include $FANNIE_ROOT . 'auth/login.php';
$uid = 1005;
$user = validateUserQuiet('delete_items');
if (!$user) {
header("Location: {$FANNIE_URL}auth/ui/loginform.php?redirect={$FANNIE_URL}legacy/queries/listDel.php?upc={$_GET['upc']}&description={$_GET['description']}");
return;
}
$uid = getUID($user);
?>
<html>
<body bgcolor=#dd0000 text=#ccccff>
<?php
include '../db.php';
if (isset($_POST['Yes'])) {
$upc = $_POST['upc'];
$gatherQ = '';
$args = array();
if (isset($_POST['description'])) {
$desc = base64_decode($_POST['description']);
$sql->prepare($gatherQ = "select upc,description,normal_price,department,tax,foodstamp,scale,modified,qttyenforced,discount,inuse from products where upc=? and description=?");
$args = array($upc, $desc);
} else {
$gatherQ = $sql->prepare("select upc,description,normal_price,department,tax,foodstamp,scale,modified,qttyenforced,discount,inuse from products where upc=?");
$args = array($upc);
}
$gatherR = $sql->execute($gatherQ, $args);
$gatherRow = $sql->fetch_row($gatherR);
$query = '';
开发者ID:phpsmith,项目名称:IS4C,代码行数:31,代码来源:listDel.php
示例8: WHERE
<?php
include '../../config.php';
if (!class_exists("FannieAPI")) {
require_once $FANNIE_ROOT . "classlib2.0/FannieAPI.php";
}
if (!class_exists("SQLManager")) {
require_once $FANNIE_ROOT . "src/SQLManager.php";
}
include $FANNIE_ROOT . 'auth/login.php';
include '../db.php';
if (!validateUserQuiet('staffar')) {
?>
<html>
<head><title>Please log in</title>
<link href="../styles.css" rel="styleshhet" type="text/css">
</head>
<body>
<div id=logo><img src='../images/newLogo_small.gif'></div>
<div id=main><?php
echo "<a href=\"{$FANNIE_URL}auth/ui/loginform.php?redirect={$FANNIE_URL}legacy/members/staffAR.php\">Click here</a> to login<p />";
} else {
$sql->query("use is4c_trans");
if (isset($_POST['recalc'])) {
$truncQ = "TRUNCATE TABLE staffAR";
$truncR = $sql->query($truncQ);
$query = "SELECT\n c.CardNo,\n c.LastName,\n c.FirstName,\n n.balance as Ending_Balance\n FROM is4c_op.custdata as c INNER JOIN staffID as a ON a.cardNo = c.CardNo\n LEFT JOIN ar_live_balance AS n ON c.CardNo=n.card_no\n WHERE (c.memType = 9 OR c.memType = 3 OR c.memType = 6)\n and c.personNum = 1\n order by c.LastName";
$result = $sql->query($query);
$insARQ = "INSERT INTO staffAR (cardNo, lastName, firstName, adjust)\n SELECT\n c.CardNo,\n c.LastName,\n c.FirstName,\n n.balance as Ending_Balance\n FROM is4c_op.custdata as c INNER JOIN staffID as a ON a.cardNo = c.CardNo\n LEFT JOIN ar_live_balance AS n ON c.CardNo=n.card_no\n WHERE (c.memType = 9 OR c.memType = 3 OR c.memType=6)\n and c.personNum = 1\n order by c.LastName";
$insARR = $sql->query($insARQ);
}
开发者ID:phpsmith,项目名称:IS4C,代码行数:31,代码来源:staffAR.php
示例9: itemParse
//.........这里部分代码省略.........
printMods($savedUPC);
echo "<form action=updateItemTest.php method=post>";
echo "<table>";
echo "<tr><td align=right><b>UPC</b></td><td><font color='red'>" . $rowItem['upc'] . "</font><input type=hidden value='{$rowItem['upc']}' name=upc>";
if ($prev != -1) {
echo " <a href=productTest.php?upc={$prev}>Previous</a>";
}
if ($next != -1) {
echo " <a href=productTest.php?upc={$next}>Next</a>";
}
echo "</td>";
echo "</tr><tr><td><b>Description</b></td><td><input type=text size=35 maxlength=30 value=\"{$rowItem['description']}\" name=descript></td>";
echo "<td><b>Price</b></td><td>\$<input type=text value='{$rowItem['normal_price']}' name=price></td></tr>";
echo "<tr><td colspan=2 align=right><b>Enable Volume Price</b> <input type=checkbox name=doVolume ";
echo ($rowItem['pricemethod'] != 0 ? "checked" : "") . " /></td><td colspan=2>";
echo "<input type=hidden name=pricemethod value=\"{$rowItem['pricemethod']}\">";
echo "<input type=text size=4 name=vol_qtty value=" . ($rowItem['quantity'] != 0 ? $rowItem['quantity'] : "\"\"") . " />";
echo " for \$<input type=text size=4 name=vol_price value=" . ($rowItem['groupprice'] != 0 ? $rowItem['groupprice'] : "\"\"") . " /></td></tr>";
echo "<tr><td><b>Manufacturer</b></td><td><input type=text size=35 value=\"{$rowItem['manufacturer']}\" name=manufacturer /></td>";
echo "<td><b>Distributor</b></td><td> <input type=text value=\"{$rowItem['distributor']}\" name=distributor /></td></tr>";
echo "<a href=/git/fannie/reports/PriceHistory/?upc={$rowItem['upc']} target=blank>Click for Price History</a>";
if ($rowItem['special_price'] != 0) {
echo "<tr><td><font size=+1 color=green><b>Sale Price:</b></font></td><td><font size=+1 color=green>{$rowItem['special_price']}</font>";
echo "<td colspan=2><font size=+1 color=green>End Date: {$rowItem['end_date']}</font></td><tr>";
$findBatchQ = $sql->prepare("select batchName from batches as b, batchList as l\n where b.batchID = l.batchID and l.upc like ?\n and " . $sql->curdate() . " BETWEEN b.startDate AND b.endDate");
$findBatchR = $sql->execute($findBatchQ, array($upc));
$batchName = $sql->num_rows($findBatchR) == 0 ? "Unknown" : array_pop($sql->fetch_array($findBatchR));
if ($batchName == "Unknown" && $likecode != "") {
$findBatchQ = $sql->prepare("select batchName from batches as b, batchList as l\n where b.batchID=l.batchID and l.upc = ?\n and " . $sql->curdate() . " BETWEEN b.startDate AND b.endDate");
$findBatchR = $sql->execute($findBatchQ, array('LC' . $likecode));
$batchName = $sql->num_rows($findBatchR) == 0 ? "Unknown" : array_pop($sql->fetch_array($findBatchR));
}
echo "<tr><td colspan=4><b>Batch: {$batchName}</b> ";
if (validateUserQuiet('pricechange') || substr($upc, 0, 3) == "002") {
echo "(<a href=unsale.php?upc={$upc}><font color=red>Take this item off sale now</font></a>)</td>";
}
}
echo "</table>";
echo "<table border=0><tr>";
echo "<th>Dept<th>Tax<th>FS<th>Scale<th>QtyFrc<th>NoDisc<th>Local<th>Like Code<th> </b>";
echo "</tr>";
echo "<tr align=top>";
//$dept=$row1[3];
$query2 = "SELECT * FROM departments as d,\n MasterSuperDepts AS s WHERE s.dept_ID=d.dept_no AND dept_no NOT IN (60,225)\n ORDER BY superID, dept_no";
echo "<td>";
$query3 = $sql->prepare("SELECT dept_no,superID FROM departments as d\n LEFT JOIN MasterSuperDepts AS s ON d.dept_no=s.dept_ID\n WHERE dept_no = ?");
$result3 = $sql->execute($query3, $rowItem['department']);
$row3 = $sql->fetch_array($result3);
echo '<select name="dept">';
$result2 = $sql->query($query2);
while ($row2 = $sql->fetch_row($result2)) {
printf('<option %s value="%d">%d %s</option>', $row2['dept_no'] == $rowItem['department'] ? 'selected' : '', $row2['dept_no'], $row2['dept_no'], $row2['dept_name']);
}
echo '</select>';
echo " </td>";
echo "<td align=right>Reg ";
echo "<input type=radio name=tax value=1";
if ($rowItem['tax'] == 1) {
echo " checked";
}
echo "><br>Deli <input type=radio name=tax value=2";
if ($rowItem['tax'] == 2) {
echo " checked";
}
echo "><br>NoTax <input type=radio name=tax value=0";
if ($rowItem['tax'] == 0) {
开发者ID:phpsmith,项目名称:IS4C,代码行数:67,代码来源:prodFunction.php
示例10: isset
}
$FS = isset($_POST["FS"]) ? 1 : 0;
$NoDisc = isset($_POST["NoDisc"]) ? 0 : 1;
$inUse = isset($_POST["inUse"]) ? 1 : 0;
$QtyFrc = isset($_POST["QtyFrc"]) ? 1 : 0;
$local = isset($_POST["local"]) ? (int) $_POST["local"] : 0;
/* if the user isn't validated but is logged in, then
they don't have permission to change prices on all
items. So get the sub department and check that.
*/
$deptSubQ = $sql->prepare("select superID from MasterSuperDepts where dept_ID = ?");
$deptSubR = $sql->execute($deptSubQ, array($dept));
$deptSubW = $sql->fetch_array($deptSubR);
$deptSub = $deptSubW[0];
if (!$validatedUser && !$auditedUser && $logged_in) {
$validatedUser = validateUserQuiet('pricechange', $deptSub);
}
$uid = 1005;
if ($validatedUser) {
$validatedUID = getUID($validatedUser);
$uid = $validatedUID;
} elseif ($auditedUser) {
$auditedUID = getUID($auditedUser);
$uid = $auditedUID;
include '../../item/audit.php';
if (!empty($likeCode)) {
audit($deptSub, $auditedUser, $upc, $descript, $price, $tax, $FS, $Scale, $NoDisc, $likeCode);
} else {
audit($deptSub, $auditedUser, $upc, $descript, $price, $tax, $FS, $Scale, $NoDisc);
}
}
开发者ID:phpsmith,项目名称:IS4C,代码行数:31,代码来源:updateItemTest.php
示例11: activate
function activate($memNum)
{
global $sql;
$model = new CustomerAccountSuspensionsModel($sql);
$model->card_no($memNum);
$username = checkLogin();
$uid = getUID($username);
$auditQ = "insert custUpdate select now(),{$uid},1,* from custdata where cardno={$memNum}";
//$auditR = $sql->query($auditQ);
$query = $sql->prepare("select type,memtype1,memtype2,discount,chargelimit,mailflag from suspensions where cardno=?");
$result = $sql->execute($query, array($memNum));
$row = $sql->fetch_array($result);
// type S shouldn't exist any more, in here to deal with historical rows
$mQ = $sql->prepare("update meminfo set ads_OK=? where card_no=?");
$cQ = $sql->prepare("update custdata set memType=?, Type=?,ChargeOk=1,Discount=?,MemDiscountLimit=?,ChargeLimit=?\n where CardNo=?");
if ($row[0] == 'I' || $row[0] == 'T' || $row[0] == 'S') {
$mR = $sql->execute($mQ, array($row['mailflag'], $memNum));
$cR = $sql->execute($cQ, array($row['memtype1'], $row['memtype2'], $row['discount'], $row['chargelimit'], $row['chargelimit'], $memNum));
} else {
if ($row[0] == 'X') {
$mR = $sql->execute($mQ, array($row['mailflag'], $memNum));
$cR = $sql->execute($cQ, array($row['memtype1'], $row['memtype2'], $row['discount'], $row['chargelimit'], $row['chargelimit'], $memNum));
}
}
$query = $sql->prepare("delete from suspensions where cardno=?");
$result = $sql->execute($query, array($memNum));
$username = validateUserQuiet('editmembers');
$now = date("Y-m-d h:i:s");
$query = $sql->prepare("insert into suspension_history (username, postdate, post, cardno, reasoncode)\n values (?,?,'Account reactivated',?,-1)");
$result = $sql->execute($query, array($username, $now, $memNum));
// add record to denote account was activated
// this record is not considered "active" because
// the account is not suspended
$model->reasonCode(0);
$model->suspensionTypeID(0);
$model->username($username);
$model->tdate($now);
$model->active(0);
$model->save();
$model->reset();
$model->card_no($memNum);
$model->active(1);
foreach ($model->find() as $obj) {
$obj->active(0);
$obj->save();
}
}
开发者ID:phpsmith,项目名称:IS4C,代码行数:47,代码来源:memAddress.php
示例12: goToPage
<?php
include '../../../config.php';
require $FANNIE_ROOT . 'auth/login.php';
if (!validateUserQuiet('barcodes')) {
?>
<html>
<head><title>Please log in</title>
<link href="../../styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id=logo><img src='../../members/images/newLogo_small.gif'></div>
<div id=main> <?php
echo "Must be logged in to view barcode page...";
echo "<a href={$FANNIE_URL}auth/ui/loginform.php?redirect={$FANNIE_URL}legacy/queries/labels/index.php>Click here</a> to login<p />";
} else {
?>
<html>
<head>
<title>Barcode Label Page</title>
<link href="../../styles.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function goToPage(the_url){
var offset = document.getElementById('offset').value;
var str = "0";
if (!isNaN(parseInt(offset)))
str = parseInt(offset);
var final_url = the_url+"&offset="+str;
window.top.location = final_url;
}
开发者ID:phpsmith,项目名称:IS4C,代码行数:31,代码来源:index.php
示例13: array
$codes = array();
if (isset($_POST["reasoncodes"])) {
$codes = $_POST["reasoncodes"];
}
$status = $_POST["status"];
$reasonCode = 0;
foreach ($codes as $c) {
$reasonCode = $reasonCode | (int) $c;
}
alterReason($memNum, $reasonCode, $status);
addressList($memNum);
// FIRE ALL UPDATE
include 'custUpdates.php';
updateCustomerAllLanes($memNum);
} else {
if (validateUserQuiet('editmembers_csc') && isset($_GET['fixedaddress'])) {
$curQ = "select reasoncode from suspensions where cardno={$memNum}";
$curR = $sql->query($curQ);
$curCode = (int) array_pop($sql->fetch_array($curR));
$newCode = $curCode & ~16;
alterReason($memNum, $newCode);
addressList($memNum);
// FIRE ALL UPDATE
include 'custUpdates.php';
updateCustomerAllLanes($memNum);
}
}
}
?>
<table>
开发者ID:phpsmith,项目名称:IS4C,代码行数:31,代码来源:alterstatus.php
示例14: array
if (!isset($currentW[$column])) {
continue;
}
if ($currentW[$column] != trim($new_value, "'")) {
$CHANGES[$column] = array('old' => $currentW[$column], 'new' => trim($new_value, "'"));
}
}
$sR = $dbc->query("SELECT superID FROM MasterSuperDepts WHERE dept_ID=" . $up_array['department']);
$sID = 0;
if ($dbc->num_rows($sR) > 0) {
$sID = array_pop($dbc->fetch_row($sR));
}
/* 1. Validate credentials of the operator. */
$uid = 0;
if (!$validatedUser && !$auditedUser && $logged_in) {
$validatedUser = validateUserQuiet('pricechange', $subdepartment);
}
if ($validatedUser) {
$validatedUID = getUID($validatedUser);
$uid = $validatedUID;
} elseif ($auditedUser) {
/* 2el. Notify dept manager of the new values. */
if (!empty($likeCode)) {
\COREPOS\Fannie\API\lib\AuditLib::itemUpdate($upc, $likeCode);
} else {
\COREPOS\Fannie\API\lib\AuditLib::itemUpdate($upc);
}
}
/* 2. Insert or update per-coop products data */
/* For WEFC_Toronto only
* Store the raw versions of products.description and productUser.description in products_WEFC_Toronto.
开发者ID:phpsmith,项目名称:IS4C,代码行数:31,代码来源:updateItems_WEFC_Toronto.php
示例15: dirname
* make a list of these chunks
* process one of these files
* redirect back to this page (resetting the memory limit)
and process the next file
*/
/* configuration for your module - Important */
include dirname(__FILE__) . '/../../config.php';
if (!class_exists('FannieAPI')) {
include_once $FANNIE_ROOT . 'classlib2.0/FannieAPI.php';
}
if (basename(__FILE__) != basename($_SERVER['PHP_SELF'])) {
return;
}
$dbc = FannieDB::get($FANNIE_OP_DB);
require $FANNIE_ROOT . 'auth/login.php';
if (!validateUserQuiet('admin')) {
$redirect = $_SERVER['REQUEST_URI'];
$url = $FANNIE_URL . 'auth/ui/loginform.php';
header('Location: ' . $url . '?redirect=' . $redirect);
}
$tpath = sys_get_temp_dir() . "/misc/";
// Are we dev-side?
$isposdev = preg_match("/0A-38/", php_uname('n')) ? True : False;
/* Return the number of decimal places to use in a price format spec: %.#f .
* Minimum is 2.
* > 2 only if the price is in a quantity-enforced situation.
*
* I renamed this sigdecimals2 to prevent a name conflict with another
* sigdecimals function in prodFunction_WEFC_Toronto
* Andy - 26Aug14
*/
开发者ID:phpsmith,项目名称:IS4C,代码行数:31,代码来源:loadWEFCTorontoProducts.php
示例16:
echo '</select>';
echo "</td><td><input type='submit' name='submit2' value='submit'></td>";
echo "</tr></table>";
echo "</form>";
}
}
$memNext = $memID + 1;
$memPrec = $memID - 1;
?>
<table>
<tr>
<?php
if (!validateUserQuiet('editmembers') && !validateUserQuiet('editmembers_csc')) {
echo "<td><a href=\"{$FANNIE_URL}auth/ui/loginform.php?redirect={$FANNIE_URL}legacy/members/memGen.php?memNum={$memID}\">Login to edit</a> | </td>";
} else {
if (validateUserQuiet('editmembers')) {
echo "<td><a href=testEdit.php?memnum={$memID}>[ Logged in ] Edit Info</a> | <a href=\"{$FANNIE_URL}auth/ui\">Logout</a></td>";
} else {
echo "<td><a href=limitedEdit.php?memnum={$memID}>[ Logged in ] Edit Info</a> | <a href=\"{$FANNIE_URL}auth/ui\">Logout</a></td>";
}
}
?>
<td>
</td>
<td>
<a href="memGen.php?memNum=<?php
echo $memPrec;
?>
">
Prev Mem</a>
开发者ID:phpsmith,项目名称:IS4C,代码行数:31,代码来源:memGen.php
注:本文中的validateUserQuiet函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论