本文整理汇总了PHP中vmGet函数的典型用法代码示例。如果您正苦于以下问题:PHP vmGet函数的具体用法?PHP vmGet怎么用?PHP vmGet使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了vmGet函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: delete
function delete(&$d)
{
# global $ps_user;
$db = new ps_DB();
$user_info_id = vmGet($d, 'user_info_id');
if (empty($user_info_id)) {
$d['error'] = "Please provide an user info id!";
return false;
}
if (is_array($user_info_id)) {
foreach ($user_info_id as $affiliate) {
$q = "DELETE FROM #__{vm}_affiliate WHERE user_id ='" . (int) $affiliate . "' ";
$db->query($q);
}
} else {
$q = "DELETE FROM #__{vm}_affiliate WHERE user_id ='" . (int) $user_info_id . "' ";
$db->query($q);
}
return True;
}
开发者ID:rafarubert,项目名称:megafiltros,代码行数:20,代码来源:ps_affiliate.php
示例2: save
function save(&$d)
{
global $VM_LANG, $vmLogger;
$ps_vendor_id = $_SESSION["ps_vendor_id"];
$db = new ps_DB();
$shipping_class = basename(vmGet($d, "shipping_class"));
if (file_exists(CLASSPATH . "shipping/" . $shipping_class . ".php")) {
include CLASSPATH . "shipping/" . $shipping_class . ".php";
$_SHIPPING = new $shipping_class();
if ($_SHIPPING->configfile_writeable()) {
$_SHIPPING->write_configuration($d);
$vmLogger->info($VM_LANG->_('VM_CONFIGURATION_CHANGE_SUCCESS', false));
return True;
} else {
$vmLogger->err(sprintf($VM_LANG->_('VM_CONFIGURATION_CHANGE_FAILURE', false), CLASSPATH . "payment/" . $_SHIPPING->classname . ".cfg.php"));
return false;
}
} else {
$vmLogger->err('The shipping class file ' . CLASSPATH . "shipping/" . $d["shipping_class"] . ".php could not be found.");
return false;
}
}
开发者ID:noikiy,项目名称:owaspbwa,代码行数:22,代码来源:ps_shipping_method.php
示例3: mm_showMyFileName
* @subpackage html
* @copyright Copyright (C) 2004-2008 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
vmCommonHTML::loadMooTools();
$function_id = vmGet($_REQUEST, 'function_id');
$module_id = vmGet($_REQUEST, 'module_id');
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($function_id)) {
$q = "SELECT * from #__{vm}_function where function_id='{$function_id}'";
$db->query($q);
$db->next_record();
}
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_FUNCTION_FORM_LBL'));
//Then Start the form
$formObj->startForm();
?>
<table class="adminform">
<tr>
<td colspan="2"> </td>
</tr>
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:admin.function_form.php
示例4: mm_showMyFileName
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
//First create the object and let it print a form heading
$formObj =& new formFactory($VM_LANG->_('PHPSHOP_ZONE_MOD'));
//Then Start the form
$formObj->startForm();
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
$zone_id = vmGet($_REQUEST, 'zone_id');
if (!empty($zone_id)) {
$q = "SELECT * FROM #__{vm}_zone_shipping WHERE zone_id='{$zone_id}'";
$db->query($q);
$db->next_record();
}
?>
<br/>
<table class="adminform">
<tr>
<td valign="top">
<div align="right"><strong><?php
echo $VM_LANG->_('PHPSHOP_ZONE_FORM_NAME_LBL');
?>
: </strong></div>
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:zone.zone_form.php
示例5: showRecommendForm
function showRecommendForm($product_id)
{
global $VM_LANG, $vendor_store_name, $sess, $my;
$sender_name = shopMakeHtmlSafe(vmGet($_REQUEST, 'sender_name', null));
$sender_mail = shopMakeHtmlSafe(vmGet($_REQUEST, 'sender_mail', null));
$recipient_mail = shopMakeHtmlSafe(vmGet($_REQUEST, 'recipient_mail', null));
$message = shopMakeHtmlSafe(vmGet($_REQUEST, 'recommend_message'));
echo '
<form action="index2.php" method="post">
<table border="0" cellspacing="2" cellpadding="1" width="80%">
<tr>
<td>' . $VM_LANG->_('EMAIL_FRIEND_ADDR') . '</td>
<td><input type="text" name="recipient_mail" size="50" value="' . (!empty($recipient_mail) ? $recipient_mail : '') . '" /></td>
</tr>
<tr>
<td>' . $VM_LANG->_('EMAIL_YOUR_NAME') . '</td>
<td><input type="text" name="sender_name" size="50" value="' . (!empty($sender_name) ? $sender_name : $my->name) . '" /></td>
</tr>
<tr>
<td>' . $VM_LANG->_('EMAIL_YOUR_MAIL') . '</td>
<td><input type="text" name="sender_mail" size="50" value="' . (!empty($sender_mail) ? $sender_mail : $my->email) . '" /></td>
</tr>
<tr>
<td colspan="2">' . $VM_LANG->_('VM_RECOMMEND_FORM_MESSAGE') . '</td>
</tr>
<tr>
<td colspan="2">
<textarea name="recommend_message" style="width: 100%; height: 200px">';
if (!empty($message)) {
echo stripslashes(str_replace(array('\\r', '\\n'), array("\r", "\n"), $message));
} else {
$msg = sprintf($VM_LANG->_('VM_RECOMMEND_MESSAGE', false), $vendor_store_name, $sess->url(URL . 'index.php?page=shop.product_details&product_id=' . $product_id, true));
echo shopMakeHtmlSafe(stripslashes(str_replace('index2.php', 'index.php', $msg)));
}
echo '</textarea>
</td>
</tr>
</table>
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="page" value="shop.recommend" />
<input type="hidden" name="product_id" value="' . $product_id . '" />
<input type="hidden" name="' . vmCreateHash() . '" value="1" />
<input type="hidden" name="Itemid" value="' . $sess->getShopItemid() . '" />
<input type="hidden" name="func" value="recommendProduct" />
<input class="button" type="submit" name="submit" value="' . $VM_LANG->_('PHPSHOP_SUBMIT') . '" />
<input class="button" type="button" onclick="window.close();" value="' . $VM_LANG->_('CMN_CANCEL') . '" />
</form>
';
}
开发者ID:noikiy,项目名称:owaspbwa,代码行数:51,代码来源:ps_communication.php
示例6: explode
'address_2' => $db->f("address_2"),
'state' => $db->f("state"),
'state_name' => $state_name,
'zip' => $db->f("zip"),
'city' => $db->f("city"),
'country' => $db->f('country')
), true );
echo "</td></tr>";
}
// Print out the Selected Shipping Method
if(!ps_checkout::noShippingMethodNecessary()) {
echo '<tr><td valign="top"><strong>'.$VM_LANG->_('PHPSHOP_INFO_MSG_SHIPPING_METHOD') . ":</strong></td>";
$rate_details = explode( "|", urldecode(urldecode(vmGet($_REQUEST,'shipping_rate_id'))) );
echo '<td>';
foreach( $rate_details as $k => $v ) {
// thepisu: old sample data cointaned ">" instead of ">"...
// so we don't have to make safe if ">" is found
if (strpos($v,">")===false) {
$v = shopMakeHtmlSafe($v);
}
if( $k == 3 ) {
echo $CURRENCY_DISPLAY->getFullValue( $v )."; ";
} elseif( $k > 0 && $k < 4) {
echo $v.'; ';
}
}
echo "</td></tr>";
}
开发者ID:rubengarcia0510,项目名称:tienda,代码行数:31,代码来源:get_final_confirmation.tpl.php
示例7: base64_encode
$action = $mm_action_url . 'index.php?option=com_user&task=login';
// Login return URL
$uri = JFactory::getURI();
$url = $uri->toString(array('path', 'query', 'fragment'));
$return = base64_encode($url);
// Lost password
$reset = JRoute::_('index.php?option=com_user&view=reset');
// User name reminder (Joomla 1.5 only)
$remind_url = JRoute::_('index.php?option=com_user&view=remind');
} else {
// Login URL
$action = $mm_action_url . 'index.php?option=login';
// Login return URL
$return = $sess->url($mm_action_url . 'index.php?' . $_SERVER['QUERY_STRING']);
// Lost password url
$reset = sefRelToAbs('index.php?option=com_registration&task=lostPassword&Itemid=' . (int) vmGet($_REQUEST, 'Itemid', 0));
// Set user name reminder to nothing
$remind_url = '';
}
?>
<tr>
<td colspan="2" align="left" valign="top" style="margin: 0px; padding: 0px;">
<form action="<?php
echo $action;
?>
" method="post" name="login" id="login">
<label for="username_vm_login"><?php
echo $VM_LANG->_('USERNAME');
?>
</label><br/>
开发者ID:dalinhuang,项目名称:joomla-goods-china,代码行数:31,代码来源:mod_virtuemart.php
示例8: vmIsXHR
/**
* Checks if the Request is a XML HTTP Request (via Ajax)
* @since 1.1.1
* @return boolean
*/
function vmIsXHR()
{
return strtolower(vmGet($_SERVER, 'HTTP_X_REQUESTED_WITH')) == 'xmlhttprequest' || vmGet($_REQUEST, 'ajax_request') == '1';
}
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:9,代码来源:ps_main.php
示例9: mm_showMyFileName
* @subpackage html
* @copyright Copyright (C) 2004-2008 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
include_class("vendor");
global $ps_vendor;
$shopper_group_id = vmGet($_REQUEST, 'shopper_group_id', null);
$option = vmGet($_REQUEST, 'option', 'com_virtuemart');
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_SHOPPER_GROUP_FORM_LBL'));
//Then Start the form
$formObj->startForm();
if (!empty($shopper_group_id)) {
$q = "SELECT * FROM #__{vm}_shopper_group ";
$q .= "WHERE shopper_group_id='{$shopper_group_id}'";
if (!$perm->check("admin")) {
$q .= " AND vendor_id = '{$ps_vendor_id}'";
}
$db->query($q);
$db->next_record();
}
?>
<table class="adminform">
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:shopper.shopper_group_form.php
示例10: mm_showMyFileName
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
global $ps_product_category;
$old_category_id = vmGet($_REQUEST, 'old_category_id');
if ($old_category_id) {
$category_id = $old_category_id;
}
$products = vmGet($_POST, 'product_id');
$count = count($products);
echo '<form action="' . $_SERVER['SCRIPT_NAME'] . '" method="post" name="adminForm">';
$clean_products = array();
for ($i = 0; $i < $count; $i++) {
$clean_products[$i] = intval($products[$i]);
echo '<input type="hidden" name="product_id[]" value="' . $clean_products[$i] . '" />';
}
$products = $clean_products;
$db->query('SELECT `product_name` FROM `#__{vm}_product` WHERE `product_id` IN(' . implode(',', $products) . ') ORDER BY `product_name`');
echo "\n<h1 class=\"header\">" . $VM_LANG->_('VM_PRODUCTS_MOVE_LBL') . "</h1>\n";
echo '<table class="adminform"><tr>';
echo '<th>' . $VM_LANG->_('VM_PRODUCTS_MOVE_TO_CATEGORY') . "</th>\n";
echo '<th>' . sprintf($VM_LANG->_('VM_PRODUCTS_MOVE_LIST'), $count) . "</th>\n";
echo '</tr><tr>';
echo '<td valign="top">';
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:product.product_move.php
示例11: get_shoppergroup_by_id
/**
* Retrieves the Shopper Group Info of the SG specified by $id
*
* @param int $id
* @param boolean $default_group
* @return array
*/
function get_shoppergroup_by_id($id, $default_group = false)
{
$ps_vendor_id = vmGet($_SESSION, 'ps_vendor_id', 1);
$db = new ps_DB();
$q = "SELECT #__{vm}_shopper_group.shopper_group_id, show_price_including_tax, `default`, shopper_group_discount \r\n \t\tFROM `#__{vm}_shopper_group`";
if (!empty($id) && !$default_group) {
$q .= ",`#__{vm}_shopper_vendor_xref`";
$q .= " WHERE #__{vm}_shopper_vendor_xref.user_id='" . $id . "' AND ";
$q .= "#__{vm}_shopper_group.shopper_group_id=#__{vm}_shopper_vendor_xref.shopper_group_id";
} else {
$q .= " WHERE #__{vm}_shopper_group.vendor_id='{$ps_vendor_id}' AND `default`='1'";
}
$db->query($q);
if ($db->next_record()) {
//not sure that is is filled in database (Steve)
$group["shopper_group_id"] = $db->f("shopper_group_id");
$group["shopper_group_discount"] = $db->f("shopper_group_discount");
$group["show_price_including_tax"] = $db->f("show_price_including_tax");
$group["default_shopper_group"] = $db->f("default");
} else {
$q = "SELECT #__{vm}_shopper_group.shopper_group_id, show_price_including_tax, `default`, shopper_group_discount \r\n \t\t\t\tFROM `#__{vm}_shopper_group`\r\n \t\t\t\tWHERE #__{vm}_shopper_group.vendor_id='{$ps_vendor_id}' AND `default`='1'";
$db->query($q);
$db->next_record();
$group["shopper_group_id"] = $db->f("shopper_group_id");
$group["shopper_group_discount"] = $db->f("shopper_group_discount");
$group["show_price_including_tax"] = $db->f("show_price_including_tax");
$group["default_shopper_group"] = $db->f("default");
}
return $group;
}
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:37,代码来源:ps_shopper_group.php
示例12: vmGet
/* make sure this is the checkout screen */
if ($cart["idx"] == 0) {
echo $VM_LANG->_('PHPSHOP_EMPTY_CART');
$checkout = False;
} else {
$checkout = True;
$payment_method_id = vmGet($_REQUEST, "payment_method_id");
$total = 0;
// Added for the zone shipping module
$vars["zone_qty"] = 0;
$weight_total = 0;
$weight_subtotal = 0;
$tax_total = 0;
$shipping_total = $shipping_tax = 0;
$order_total = 0;
$coupon_discount = vmGet($_SESSION, 'coupon_discount', 0);
$coupon_discount_before = $coupon_discount_after = $payment_discount_before = $payment_discount_after = $tax = $shipping = false;
$product_rows = array();
for ($i = 0; $i < $cart["idx"]; $i++) {
// Added for the zone shipping module
$vars["zone_qty"] += $cart[$i]["quantity"];
if ($i % 2) {
$product_rows[$i]['row_color'] = "sectiontableentry2";
} else {
$product_rows[$i]['row_color'] = "sectiontableentry1";
}
// Get product parent id if exists
$product_parent_id = $ps_product->get_field($cart[$i]["product_id"], "product_parent_id");
// Get flypage for this product
$flypage = $ps_product->get_flypage($cart[$i]["product_id"]);
// Build URL based on whether item or product
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:ro_basket.php
示例13: update
/**
* Updates a given Credit Card Record
*
* @param array $d
* @return boolean
*/
function update(&$d)
{
global $VM_LANG;
$db = new ps_DB();
$timestamp = time();
if (!$this->validate_update($d)) {
$d["error"] = $this->error;
return False;
}
$fields = array('vendor_id' => $_SESSION["ps_vendor_id"], 'creditcard_name' => vmGet($d, 'creditcard_name'), 'creditcard_code' => vmGet($d, 'creditcard_code'));
$db->buildQuery('UPDATE', '#__{vm}_creditcard', $fields, 'WHERE creditcard_id=' . (int) $d["creditcard_id"]);
if ($db->query()) {
$GLOBALS['vmLogger']->info($VM_LANG->_('VM_CREDITCARD_UPDATED'));
$_REQUEST['creditcard_id'] = $db->last_insert_id();
return true;
}
return false;
}
开发者ID:noikiy,项目名称:owaspbwa,代码行数:24,代码来源:ps_creditcard.php
示例14: vmGet
$vmLayout = vmGet($_COOKIE, 'vmLayout', 'standard');
// Change the Layout Type if it is provided through GET
if (!empty($_GET['vmLayout'])) {
$vmLayout = $_GET['vmLayout'] == 'standard' ? $_GET['vmLayout'] : 'extended';
}
// Remember the Cookie for 1 Week
ob_get_level() or ob_start();
setcookie('vmLayout', $vmLayout, time() + 604800);
// pages, which are called through index3.php are PopUps, they should not need a menu (but it can be overridden by $_REQUEST['no_menu'])
$no_menu_default = strstr($_SERVER['SCRIPT_NAME'], 'index3.php') ? 1 : 0;
$no_menu = $_REQUEST['no_menu'] = vmGet($_REQUEST, 'no_menu', $no_menu_default);
// Display the toolbar?
$no_toolbar = vmGet($_REQUEST, 'no_toolbar', 0);
// Display just the naked page without toolbar, menu and footer?
$only_page_default = strstr($_SERVER['SCRIPT_NAME'], 'index3.php') ? 1 : 0;
$only_page = $_REQUEST['only_page'] = vmGet($_REQUEST, 'only_page', $only_page_default);
if (empty($page) || empty($_REQUEST['page'])) {
if (!empty($_REQUEST['amp;page'])) {
$page = $_REQUEST['amp;page'];
foreach ($_REQUEST as $key => $val) {
if (strstr($key, 'amp;')) {
$key = str_replace('amp;', '', $key);
$_REQUEST[$key] = $val;
}
}
} else {
$page = vmget($_SESSION, 'last_page', 'store.index');
}
}
$limit = $vm_mainframe->getUserStateFromRequest("viewlistlimit", 'limit', $mosConfig_list_limit);
$limitstart = $vm_mainframe->getUserStateFromRequest("view{$page}{$product_id}{$category_id}limitstart", 'limitstart', 0);
开发者ID:patricmutwiri,项目名称:joomlaclube,代码行数:31,代码来源:admin.virtuemart.php
示例15: empty
$search_string = $mm_action_url . "index.php?option=com_virtuemart&Itemid={$Itemid}&category_id={$category_id}&page={$modulename}.browse";
$search_string .= empty($manufacturer_id) ? '' : "&manufacturer_id={$manufacturer_id}";
$search_string .= empty($keyword) ? '' : '&keyword=' . urlencode($keyword);
if (!empty($keyword1)) {
$search_string .= "&keyword1=" . urlencode($keyword1);
$search_string .= "&search_category=" . urlencode($search_category);
$search_string .= "&search_limiter={$search_limiter}";
if (!empty($keyword2)) {
$search_string .= "&keyword2=" . urlencode($keyword2);
$search_string .= "&search_op=" . urlencode($search_op);
}
}
if (!empty($product_type_id)) {
foreach ($_REQUEST as $key => $value) {
if (substr($key, 0, 13) == "product_type_") {
$val = vmGet($_REQUEST, $key);
if (is_array($val)) {
foreach ($val as $var) {
$search_string .= "&" . $key . "[]=" . urlencode($var);
}
} else {
$search_string .= "&" . $key . "=" . urlencode($val);
}
}
}
}
}
$tpl->set('VM_BROWSE_ORDERBY_FIELDS', $VM_BROWSE_ORDERBY_FIELDS);
if ($DescOrderBy == "DESC") {
$icon = "sort_desc.png";
$selected = array("selected=\"selected\"", "");
开发者ID:albertobraschi,项目名称:Hab,代码行数:31,代码来源:shop.browse.php
示例16: vmGet
</span><br />
<?php
echo JText::_('COM_VIRTUEMART_UPDATE_WARNING_TEXT');
?>
</div>
<div class="shop_info">
<span style="font-style: italic;"><?php
echo JText::_('COM_VIRTUEMART_UPDATE_PATCH_DETAILS');
?>
</span><br />
<ul>
<li><?php
echo JText::_('COM_VIRTUEMART_UPDATE_PATCH_DESCRIPTION');
?>
: <?php
echo vmGet($packageContents, 'description', null, JREQUEST_ALLOWHTML);
?>
</li>
<li><?php
echo JText::_('COM_VIRTUEMART_UPDATE_PATCH_DATE');
?>
: <?php
echo $packageContents['releasedate'];
?>
</li>
</ul>
</div>
<table class="adminlist" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th class="title"><?php
开发者ID:sergy444,项目名称:joomla,代码行数:31,代码来源:update_preview.php
示例17: _tax_based_on_vendor_address
function _tax_based_on_vendor_address($ship_to_info_id = '')
{
global $auth;
global $vmLogger;
switch (TAX_MODE) {
case '0':
return false;
case '1':
return true;
case '17749':
$ship_to_info_id = !empty($ship_to_info_id) ? $ship_to_info_id : vmGet($_REQUEST, 'ship_to_info_id');
$db = new ps_DB();
$q = "SELECT country FROM #__{vm}_user_info WHERE user_info_id='" . $ship_to_info_id . "'";
$db->query($q);
$db->next_record();
$ship_country = $db->f("country");
if (!array_key_exists('country', $auth) || empty($ship_country)) {
$vmLogger->debug('shopper\'s country is not known; defaulting to vendor-based tax');
return true;
}
if ($ship_to_info_id) {
$vmLogger->debug('shopper shipping in ' . $ship_country);
$auth_country = $ship_country;
} else {
$vmLogger->debug('shopper is in ' . $auth['country']);
$auth_country = $auth['country'];
}
return ps_checkout::country_in_eu_common_vat_zone($auth_country);
default:
$vmLogger->warning('unknown TAX_MODE "' . TAX_MODE . '"');
return true;
}
}
开发者ID:noikiy,项目名称:owaspbwa,代码行数:33,代码来源:ps_checkout.php
示例18: mm_showMyFileName
* @copyright Copyright (C) 2004-2005 Soeren Eberhardt. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
if (!isset($_REQUEST["order_id"]) || empty($_REQUEST["order_id"])) {
echo $VM_LANG->_('VM_CHECKOUT_ORDERIDNOTSET');
} else {
include CLASSPATH . "payment/ps_paypal.cfg.php";
$order_id = intval(vmGet($_REQUEST, "order_id"));
$q = "SELECT order_id, order_status FROM #__{vm}_orders WHERE ";
$q .= "#__{vm}_orders.user_id= " . $auth["user_id"] . " ";
$q .= "AND #__{vm}_orders.order_id= {$order_id} ";
$db->query($q);
if ($db->next_record()) {
$order_status = $db->f("order_status");
$d['order_id'] = $db->f("order_id");
//if($_REQUEST['x_response_code'] == '1') {
if (substr($_REQUEST['result'], 0, 2) == '00') {
// UPDATE THE ORDER STATUS to 'PAID'
$d['order_status'] = "D";
require_once CLASSPATH . 'ps_order.php';
$ps_order = new ps_order();
$ps_order->order_status_update($d);
?>
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:checkout.paysbuy.php
示例19: validate_update
/**
* validate order export module update
* @param array
* @return bool
* @author Manfred Dennerlein Rodelo <[email protected]>
*/
function validate_update(&$d)
{
global $vmLogger, $VM_LANG;
$db = new ps_DB();
if (!$d['export_id']) {
$vmLogger->err($VM_LANG->_('VM_EXPORT_ERR_UPDATE_SELECT'));
return False;
}
if (!$d['export_name']) {
$vmLogger->err($VM_LANG->_('VM_EXPORT_ERR_MODULE_NAME'));
return False;
}
if (!file_exists(CLASSPATH . 'export/' . $d['export_class'] . '.php')) {
$vmLogger->err($VM_LANG->_('VM_EXPORT_ERR_CLASS_NOT_EXIST'));
return false;
}
$d['export_config'] = vmGet($_POST, 'export_config', '', VMREQUEST_ALLOWHTML);
$d['export_config'] = addslashes($d['export_config']);
return True;
}
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:26,代码来源:ps_export.php
示例20: mm_showMyFileName
* @package VirtueMart
* @subpackage html
* @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
require_once CLASSPATH . "pageNavigation.class.php";
require_once CLASSPATH . "htmlTools.class.php";
$country_id = vmGet($_REQUEST, 'country_id');
if (is_array($country_id)) {
$country_id = $country_id[0];
}
if (empty($country_id)) {
vmRedirect($_SERVER['PHP_SELF'] . "?option=com_virtuemart&page=admin.country_list", "A country ID could not be found");
}
$db->query("SELECT country_name FROM #__{vm}_country WHERE country_id='{$country_id}'");
$db->next_record();
$title = $VM_LANG->_('PHPSHOP_STATE_LIST_LBL') . " " . $db->f("country_name");
$q = "SELECT SQL_CALC_FOUND_ROWS * FROM #__{vm}_state ";
$search = '';
if (!empty($keyword)) {
$search .= "AND ( state_name LIKE '%{$keyword}%' OR ";
$search .= "state_2_code LIKE '%{$keyword}%' OR ";
$search .= "state_3_code LIKE '%{$keyword}%' ";
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:admin.country_state_list.php
注:本文中的vmGet函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论