本文整理汇总了PHP中load_banner_constants函数的典型用法代码示例。如果您正苦于以下问题:PHP load_banner_constants函数的具体用法?PHP load_banner_constants怎么用?PHP load_banner_constants使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了load_banner_constants函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ini_set
<?php
ini_set('max_execution_time', 10000);
require "../config.php";
require 'admin_common.php';
if ($_REQUEST['BID'] != '') {
$BID = $_REQUEST['BID'];
} else {
$BID = 1;
}
load_banner_constants($BID);
//$sql = "select * from banners where banner_id=$BID";
//$result = mysql_query ($sql) or die (mysql_error().$sql);
//$b_row = mysql_fetch_array($result);
?>
The following screen shows a map of all the orders made on a grid. Move your mouse over the blocks to find who owns the order. Click on the block to manage the order.<br>
Red blocks are on order (Status can be: 'reserved', 'ordered', 'sold'), Green blocks are currently selected (Status can be: 'new')
</span>
<?php
$sql = "Select * from banners ";
$res = mysql_query($sql);
?>
<form name="bidselect" method="post" action="<?php
echo $_SERVER['PHP_SELF'];
?>
">
Select grid: <select name="BID" onchange="document.bidselect.submit()">
<option> </option>
示例2: session_start
<?php
session_start();
define('NO_HOUSE_KEEP', 'YES');
// check the image selection.
require "../config.php";
header("Cache-Control: no-cache, must-revalidate");
// HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// Date in the past
load_banner_constants($_REQUEST['BID']);
// normalize...
$_REQUEST['map_x'] = floor($_REQUEST['map_x'] / BLK_WIDTH) * BLK_WIDTH;
$_REQUEST['map_y'] = floor($_REQUEST['map_y'] / BLK_HEIGHT) * BLK_HEIGHT;
$_REQUEST['block_id'] = floor($_REQUEST['block_id']);
# place on temp order -> then
//print_r($_REQUEST);
function place_temp_order($in_str, $price)
{
//global $b_row;
if (session_id() == '') {
return false;
}
// cannot place order if there is no session!
$blocks = explode(',', $in_str);
$quantity = sizeof($blocks) * (BLK_WIDTH * BLK_HEIGHT);
$now = gmdate("Y-m-d H:i:s");
// preserve ad_id & block info...
$sql = "SELECT ad_id, block_info FROM temp_orders WHERE session_id='" . addslashes(session_id()) . "' ";
$result = mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_array($result);
示例3: load_ad_values
<?php
if (is_numeric($_REQUEST['ad_id'])) {
$gd_info = @gd_info();
if ($gd_info['GIF Read Support']) {
$gif_support = "GIF";
}
if ($gd_info['JPG Support']) {
$jpeg_support = "JPG";
}
if ($gd_info['PNG Support']) {
$png_support = "PNG";
}
$prams = load_ad_values($_REQUEST['ad_id']);
//echo "load const ";
load_banner_constants($prams['banner_id']);
$sql = "SELECT * from ads as t1, orders as t2 where t1.ad_id=t2.ad_id AND t1.user_id=" . $prams['user_id'] . " and t1.banner_id='" . $prams['banner_id'] . "' and t1.ad_id='" . $prams['ad_id'] . "' AND t1.order_id=t2.order_id ";
//echo $sql."<br>";
$result = mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_array($result);
$order_id = $row['order_id'];
$blocks = explode(',', $row['blocks']);
$size = get_pixel_image_size($row['order_id']);
$pixels = $size['x'] * $size['y'];
//print_r($size);
//echo "order id:".$row['order_id']."<br>";
//echo "$sql<br>";
$sql = "SELECT * from blocks WHERE order_id='" . $order_id . "'";
$blocks_result = mysql_query($sql) or die(mysql_error() . $sql);
if ($_REQUEST['change_pixels']) {
// a new image was uploaded...
示例4: str_replace
</h1>
<p><?php
$label['no_order_in_progress_go_here'] = str_replace('%ORDER_PAGE%', $order_page, $label['no_order_in_progress_go_here']);
echo $label['no_order_in_progress_go_here'];
?>
</p>
<?php
require "footer.php";
die;
} else {
$order_row = mysql_fetch_array($order_result);
}
// get the banner ID
$BID = $order_row['banner_id'];
$b_row = load_banner_constants($BID);
/*
Login ->
Select paln ->
Conform order
*/
require "login_functions.php";
if ($_SESSION['MDS_ID'] == '') {
// not logged in..
require "header.php";
?>
<h3>
<?php
echo $label['not_logged_in'];
?>
</h3>