code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php include_once("../configure/admin.config.inc.php"); //--> admin global var include_once("db.inc.php"); //--> db global var include_once("Smarty.class.php"); //--> out template include_once("Operation.php"); //--> Operation include_once("Customer.php"); //--> Customer include_once("Country.php")...
PHP
<?php include_once("../configure/admin.config.inc.php"); //--> admin global var include_once("db.inc.php"); //--> db global var include_once("Smarty.class.php"); //--> out template include_once("Orders.php"); //--> Orders include_once("Operation.php"); //--> Operation require_once("controlHeader.p...
PHP
<?php include_once("../configure/admin.config.inc.php"); //--> admin global var include_once("db.inc.php"); //--> db global var include_once("Smarty.class.php"); //--> out template include_once("Operation.php"); //--> Operation include_once("Orders.php"); //--> Orders include_once("TimeZone.php"); ...
PHP
<?php /* * Created on Dec 2, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class CouponCustomer { private $id; private $type; private $couponID; private $customerID; public function CouponCustomer() { ...
PHP
<?php /* explain: common class * Project: marsems * File: Common.php * * @ link http://www.marems.com/lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 ivan.ling * @ author ivan.ling * @ version 1.0 * * @ --- function list --- * @ mutilPager($total, $page, $disDataCount, $url) --> spli...
PHP
<?php /* explain: logs class * Project: marsems * File: Logs.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author Ivan Ling * @ version 3.0 * */ include_once("Common.php"); class Logs extends Common { private $conHandle;...
PHP
<?php /* explain: * Project: * File: qa.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class Zone extends Common { private $intLinkS...
PHP
<?php /* explain: * Project: * File: qa.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class Message extends Common { private $intLi...
PHP
<?php /* * Created on Feb 19, 2011 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class TimeZone { public function TimeZone() { } function getTimezoneOffset($sourceTZ, $target_dt = null) { if($target_dt === nu...
PHP
<?php /* explain: * Project: * File: Job.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class MenuGroup extends Common { public $conHa...
PHP
<?php define("ENTER",chr(13).chr(10)); class Files { function __construct() { } public function copyDirVSfiles($source, $destination) { $result = true; if(!is_dir($source)){ return false; } if(!is_dir($destination)){ if(!mkdir($destination, 0700)){ t...
PHP
<?php /* explain: news system * Project: * File: news.php * * @ link http://www.../modules/ * @ Email ldmmyx@hotmail.com * @ copyright 2005 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class PromotionImpl extends C...
PHP
<?php /* explain: news system * Project: * File: news.php * * @ link http://www.../modules/ * @ Email ldmmyx@hotmail.com * @ copyright 2005 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class Special extends Common ...
PHP
<?php /* explain: access class * Project: * File: Access.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author Ivan Ling * @ version 3.0 * */ include_once("Common.php"); class Access extends Common { function Access() ...
PHP
<?php /* explain: * Project: * File: InfoClass.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2008 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class Attributes extends Com...
PHP
<?php /* explain: news system * Project: * File: news.php * * @ link http://www.../modules/ * @ Email ldmmyx@hotmail.com * @ copyright 2005 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class Customer extends Common...
PHP
<?php /* explain: * Project: * File: qa.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class Country extends Common { private $intLi...
PHP
<?php /* explain: * * @ link http://www.marsemd.com/ * @ Email ldmmyx@hotmail.com * @ copyright 2005 ivan Ling Deming * @ author gaby ivan Ling Deming * @ version 2.0 * */ include_once("DB.php"); class Session extends DB { private $s_link; private $execInfo; private $sessionID; pri...
PHP
<?php /* explain: * Project: * File: InfoClass.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2008 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class InfoClass extends Comm...
PHP
<?php /* explain: * Project: * File: Job.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class Menu extends Common { public $conHandle;...
PHP
<?php class Security { private $strEncrypt; //----- password key private $intValidateNum; //----- check code function __construct() { while(($this->intValidateNum = rand() % 10000) < 1000); $this->strEncrypt='LingDeming20050519'.date('YmdH'); } public function iGetCheckCode() { return $this->i...
PHP
<?php define("ENTER",chr(13).chr(10)); class HTMLUtils { private $arrPageFlag = array(); private $arrSearch = array(); private $arrReplace = array(); function __construct() { $this->arrSearch = array ("'<script[^>]*?>.*?</script>'si", "'<[\/\!]*?[^<>]*?>'si", "'([\r\n])[\s]+'", "'&(quot|#34);'i...
PHP
<?php /** * Project: * File: Strings.php * * @link http://.../lib * @copyright 2007 * @author ivan <ldmmyx@hotmail.com> * @version 1.0 * * @ substr_cut($str_cut,$length = 65) */ class Strings { function Strings() { } public function getCharNum($text) { $text = trim($text); $return =...
PHP
<?php /* explain: Popedom system * Project: marsems * File: Popedom.php * * @ link http://www.marems.com/lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 ivan.ling * @ author ivan.ling * @ version 1.0 * * @ --- function list --- * @ getNotPopedomInfo() --> tip */ includ...
PHP
<?php /** * * * @link http://ad.zjol.com.cn/ * @copyright 2005 WAM Chian Ltd. * @author gabriel <deming@staff.service4media.com> * @version 1.0 */ class Validation { private $execinfo = ''; public function isChar($content) { if(ereg('^[a-zA-Z]+$',$content)) return TRUE; else ret...
PHP
<?php /* * Created on Dec 1, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class AddressBookDao { private $id; private $firstname; private $lastname; private $gender; private $customerid; private $company; ...
PHP
<?php /* explain: * Project: * File: Job.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); class Operation extends Common { public $conHandle; public $errorInfo; ...
PHP
<?php /* explain: * Project: * File: vedioUpload.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class UploadFiles extends Common { c...
PHP
<?php /* explain: * Project: * File: Job.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class TaxRates extends Common { public $conHan...
PHP
<?php /* * Created on Dec 1, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once ("AddressBookDao.php"); //-- for payment class OrdersDao { private $id; private $languageID; private $currency; private $curr...
PHP
<?php /* explain: news system * Project: * File: news.php * * @ link http://www.../modules/ * @ Email ldmmyx@hotmail.com * @ copyright 2005 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class Orders extends Common {...
PHP
<?php class Words { function __construct() { } /* * 在MySQL4中,是已经开始支持全文检索(索引)的了。但是只是对英文支持全文检索。 由于英文在书写上的特殊性,使得分词算法相对中文来说,简单得多。一般来说,我们可以通过单词与单词之间的空格,以及标点符号来完成这个分词过程。 但是就中文来说,就没有那么简单。MySQL无法对中文做出正确的分词,假设有如下英文句子: "Hello world! Hello PHP!" 通过上面提及的方法,可以很简单的把这个句子分词为: 1 Hello 2 world 3 PHP 我们再来看看中文的句子: "你好世...
PHP
<?php /* explain: news system * Project: * File: news.php * * @ link http://www.../modules/ * @ Email ldmmyx@hotmail.com * @ copyright 2005 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class Merchant extends Common...
PHP
<?php /* * Created on Dec 2, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class CouponDomain { const TYPE_PERECENT = 'Percent'; const TYPE_SAVE_OFF = 'SaveOff'; const TYPE_FREE_SHIPPING = 'FreeShipping'; priva...
PHP
<?php /* explain: news system * Project: * File: news.php * * @ link http://www.../modules/ * @ Email ldmmyx@hotmail.com * @ copyright 2005 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class ShippingFee extends Com...
PHP
<?php /* comments-->xml operation * * @link http://.... * @copyright 2005 ling de ming * @author ivan <ldmmyx@hotmail.com> * @version 1.0 * * function --> comment(x.y: --->x same module,y is a funtion in same module) * * 1.1 funCreateXml($filename,$root,$code='gb2312') //---> create XML file ...
PHP
<?php /* explain: * Project: * File: Job.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); include_once("CouponDomain.php"); include_once(...
PHP
<?php /* explain: * Project: * File: qa.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class QA extends Common { private $intLinkSig...
PHP
<?php /* explain: news system * Project: * File: news.php * * @ link http://www.../modules/ * @ Email ldmmyx@hotmail.com * @ copyright 2005 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class Product extends Common ...
PHP
<?php /* * Created on Dec 1, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class CustomerDao { private $id; private $firstname; private $lastname; private $countryid; private $addressid; private $gender; private ...
PHP
<?php /* * Created on Jan 7, 2011 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class CSVFileParser { private $hasError = false; private $errorInfo = ''; private $rowIndex = 0; private $arrTitle = array(); pri...
PHP
<?php /* explain: * Project: * File: Job.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class TaxClass extends Common { public $conHan...
PHP
<?php /* * Created on Sep 14, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class HttpDownload { var $data = null; var $data_len = 0; var $data_mod = 0; var $data_type = 0; var $data_section = 0; //section download...
PHP
<?php class ServerUtils { function __construct() { } /** * get currently site domain * * @param boolean $isport is return port info in return info. * @return string */ public function gethost($isport = false) { $scheme = (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) != 'off')) ? '...
PHP
<?php include_once("db.inc.php"); class DB { private static $isPconnection = false; private static $usedConns = array(array()); private static $usableConns = array(array()); private static $arrConnConfig = array(array()); public function DB() { global $ARR_GLOGAL_DB_CONFIG; DB::$arr...
PHP
<?php /* explain: * Project: * File: qa.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class AddressBook extends Common { private $i...
PHP
<?php /* explain: * Project: * File: Job.php * * @ link http://www.../lib/ * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class UserGroup extends Common { public $conHa...
PHP
<?php /* explain: news system * Project: * File: news.php * * @ link http://www.../modules/ * @ Email ldmmyx@hotmail.com * @ copyright 2005 Ling Deming * @ author ivan.ling Ling Deming * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class Manufacturer extends Co...
PHP
<?php /* explain: authority class * Project: marsems * File: Authority.php * * @ link http://www.marsems.com/lib * @ Email ldmmyx@hotmail.com * @ copyright 2007 Ling Deming * @ author ivan.ling * @ version 1.0 * */ include_once("Common.php"); include_once("Logs.php"); class ...
PHP
<?php /* * Created on Sep 15, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class HttpUtils { public function fetch_url($url, $code_on_fail = false, $interface = null) { $ch = curl_init($url); curl_setopt($ch, ...
PHP
<?php include_once("../configure/admin.config.inc.php"); //--> admin global var include_once("db.inc.php"); //--> db global var include_once("Smarty.class.php"); //--> out template include_once("Operation.php"); //--> Operation include_once("QA.php"); //--> QA require_once("controlHeader.php"); ...
PHP
<?php include_once("../configure/admin.config.inc.php");//--> admin global var include_once("db.inc.php"); //--> db global var include_once("Operation.php"); //--> Operation include_once("QA.php"); //--> QA require_once("controlHeader.php"); //--> system control header $objOperate = new Operatio...
PHP
<?php include_once("../configure/admin.config.inc.php"); //--> admin global var include_once("db.inc.php"); //--> db global var include_once("Smarty.class.php"); //--> out template include_once("Operation.php"); //--> Operation require_once("controlHeader.php"); //--> system control header include_on...
PHP
<?php include_once("../configure/admin.config.inc.php"); //--> admin global var include_once("db.inc.php"); //--> db global var include_once("Smarty.class.php"); //--> out template include_once("Operation.php"); //--> Operation require_once("controlHeader.php"); //--> system control header include_on...
PHP
<?php //include_once ("../configure/configure.php"); //-- global var include_once("./configure/admin.config.inc.php"); //--> global var include_once("db.inc.php"); //--> db global var include_once("Smarty.class.php"); //--> out template include_once("Authority.php"); //--> Authority //include_once("c...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("customerSession.inc.php"); include_once("Smarty.class.php"); //--> out ...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php if(is_object($oCoupon)){ $couponCode = $oCoupon->getCode(); } $saveoff = 0; if($objOrdersInfo->getAccount()->getSaveOff() > 0){ $saveoff = $objOrdersInfo->getAccount()->getSaveOff(); } $paymentInfo = ''; if($paymentMethod == "Credit Card"){ $paymentInfo = "<br><b>Card Type:</b> " . $objOrd...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("./configure/page.php"); //--> page configure include_once("Smarty.class....
PHP
<?php $specProducts = array(); $allproducts = $common->listCustom(DB_TAG_PUBLIC, 'p.id, p.price, s.newPrice finalPrice, pd.name', "products p, products_description pd, specials s WHERE p.id = s.productID AND p.status = 'normal' AND p.id = pd.productID AND pd.languageID = $LANGEUAGE_ID AND s.expireDate > NOW()", 'ORD...
PHP
<?php $categorys = array(); $topCategory = $common->getHash(DB_TAG_SYSTEM, 'SELECT id, name FROM info_class WHERE parentid = 0 ORDER BY sorts'); foreach($topCategory as $topid=>$name){ $categorys[$topid] = $common->getHash(DB_TAG_SYSTEM, "SELECT id, name FROM info_class WHERE parentid='$topid' ORDER BY sorts"); }...
PHP
<?php /* * Created on Nov 27, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once './configure/ppsdk_include_path.inc'; include_once("customerSession.inc.php"); require_once 'PayPal.php'; require_once 'PayPal/Profil...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once './configure/ppsdk_include_path.inc'; include_once("customerSession.inc.php...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("./configure/page.php"); //--> page configure include_once("Smarty.class....
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); ...
PHP
<?php define('HOME_URL','http://localhost:93'); //-- define('HOME_URL_HTTP','http://localhost:93'); //-- define('HOME_URL_HTTPS','http://localhost:93'); //-- define('DISPLAY_DATA_SIZE', 20); define('EMAIL_USE_HTML', 'true'); define('CACHING', false); define('CACHE_LIFETIME', 1800);// second define('PAYMENT_PAYPAL_E...
PHP
<?php /* * Created on Oct 14, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ define('PAGE_ID_INDEX', 1); define('PAGE_ID_SEARCH', 2); define('PAGE_ID_ABOUT', 3); define('PAGE_ID_PRIVACY', 4); define('PAGE_ID_CONTACT', 5); d...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); i...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php /* * Created on Nov 8, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var if(isset($_GET['id'])){ $partnerID = $_GET['id']; $arrDomain = explode(',', PART...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php /* * Created on Sep 13, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ include_once("./configure/configure.php"); //--> global var include_once("Smarty.class.php"); //--> out template include_once("Common.php"); inc...
PHP
<?php // Ack related constants define('ACK_SUCCESS', 'Success'); define('ACK_SUCCESS_WITH_WARNING', 'SuccessWithWarning'); // Refund related constants define('REFUND_PARTIAL', 'Partial'); define('REFUND_FULL', 'Full'); // Profile define('ENVIRONMENT', 'sandbox'); //define('API_USER_NAME', 'ldmmyx_12904...
PHP
<?php /* * Created on Dec 2, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class PaypalInfo { private $APIProfile; private $token; private $payerid; private $paymentType; private $paymentAmount; private $currenc...
PHP
<?php /* * Created on Nov 27, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ require_once 'ppsdk_include_path.inc'; require_once 'PayPal.php'; require_once 'PayPal/Profile/Handler/Array.php'; require_once 'PayPal/Profile/API.p...
PHP
<?php require_once 'Log.php'; /** * Class to handle logging for the PHP SDK sample apps. * * @package samples_php */ class SampleLogger { /** * PHP Sample being logged * * @var string $_logSample */ var $_logSample; /** * What level should we log at? Valid levels are: *...
PHP
<?php require_once '../../configure/ppsdk_include_path.inc'; require_once 'PayPal.php'; require_once 'PayPal/Profile/Handler/Array.php'; require_once 'PayPal/Profile/API.php'; require_once 'PayPal/Type/AbstractResponseType.php'; require_once 'PayPal/Type/ErrorType.php'; require_once 'PayPal/Type/RefundTransa...
PHP
<?php /** * * * */ class ImageUtils { /** * * * @param $filename * @param $w * @param $h * @param $override * @param $background * @param $color */ public function RatioAdjuct($filename = '', $w = 440, $h = 300, $override = null, $background = null, $color = '0xFFFFFF') { l...
PHP
<?php /* * Created on Nov 10, 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class Password { function Password() { } // This funstion validates a plain text password with an // encrpyted password public func...
PHP
<?php /** * $Header: /cvs_storage/123gohelmets_v2/lib/paypal-sdk/Log/syslog.php,v 1.1 2011/09/18 05:16:07 iling Exp $ * $Horde: horde/lib/Log/syslog.php,v 1.6 2000/06/28 21:36:13 jon Exp $ * * @version $Revision: 1.1 $ * @package Log */ /** * The Log_syslog class is a concrete implementation of the Lo...
PHP
<?php // $Id: daemon.php,v 1.1 2011/09/18 05:16:07 iling Exp $ /** * The Log_daemon class is a concrete implementation of the Log:: * abstract class which sends messages to syslog daemon on UNIX-like machines. * This class uses the syslog protocol: http://www.ietf.org/rfc/rfc3164.txt * * @author Bart van...
PHP
<?php /** * $Header: /cvs_storage/123gohelmets_v2/lib/paypal-sdk/Log/composite.php,v 1.1 2011/09/18 05:16:06 iling Exp $ * $Horde: horde/lib/Log/composite.php,v 1.2 2000/06/28 21:36:13 jon Exp $ * * @version $Revision: 1.1 $ * @package Log */ /** * The Log_composite:: class implements a Composite patt...
PHP
<?php /** * $Header: /cvs_storage/123gohelmets_v2/lib/paypal-sdk/Log/mdb2.php,v 1.1 2011/09/18 05:16:07 iling Exp $ * * @version $Revision: 1.1 $ * @package Log */ /** PEAR's MDB2 package */ require_once 'MDB2.php'; MDB2::loadFile('Date'); /** * The Log_mdb2 class is a concrete implementation of th...
PHP
<?php /** * $Header: /cvs_storage/123gohelmets_v2/lib/paypal-sdk/Log/file.php,v 1.1 2011/09/18 05:16:07 iling Exp $ * * @version $Revision: 1.1 $ * @package Log */ /** * The Log_file class is a concrete implementation of the Log abstract * class that logs messages to a text file. * * @author Jon...
PHP
<?php /** * $Header: /cvs_storage/123gohelmets_v2/lib/paypal-sdk/Log/sqlite.php,v 1.1 2011/09/18 05:16:07 iling Exp $ * * @version $Revision: 1.1 $ * @package Log */ /** * The Log_sqlite class is a concrete implementation of the Log:: * abstract class which sends messages to an Sqlite database. * Ea...
PHP
<?php /** * $Header: /cvs_storage/123gohelmets_v2/lib/paypal-sdk/Log/error_log.php,v 1.1 2011/09/18 05:16:06 iling Exp $ * * @version $Revision: 1.1 $ * @package Log */ /** * The Log_error_log class is a concrete implementation of the Log abstract * class that logs messages using PHP's error_log() fun...
PHP
<?php /** * $Header: /cvs_storage/123gohelmets_v2/lib/paypal-sdk/Log/observer.php,v 1.1 2011/09/18 05:16:06 iling Exp $ * $Horde: horde/lib/Log/observer.php,v 1.5 2000/06/28 21:36:13 jon Exp $ * * @version $Revision: 1.1 $ * @package Log */ /** * The Log_observer:: class implements the Observer end of...
PHP
<?php /** * $Header: /cvs_storage/123gohelmets_v2/lib/paypal-sdk/Log/win.php,v 1.1 2011/09/18 05:16:06 iling Exp $ * * @version $Revision: 1.1 $ * @package Log */ /** * The Log_win class is a concrete implementation of the Log abstract * class that logs messages to a separate browser window. * * T...
PHP
<?php /** * $Header: /cvs_storage/123gohelmets_v2/lib/paypal-sdk/Log/mail.php,v 1.1 2011/09/18 05:16:06 iling Exp $ * * @version $Revision: 1.1 $ * @package Log */ /** * The Log_mail class is a concrete implementation of the Log:: abstract class * which sends log messages to a mailbox. * The mail is...
PHP
<?php /** * $Header: /cvs_storage/123gohelmets_v2/lib/paypal-sdk/Log/display.php,v 1.1 2011/09/18 05:16:06 iling Exp $ * * @version $Revision: 1.1 $ * @package Log */ /** * The Log_display class is a concrete implementation of the Log:: * abstract class which writes message into browser in usual PHP m...
PHP
<?php /** * $Header: /cvs_storage/123gohelmets_v2/lib/paypal-sdk/Log/console.php,v 1.1 2011/09/18 05:16:06 iling Exp $ * * @version $Revision: 1.1 $ * @package Log */ /** * The Log_console class is a concrete implementation of the Log:: * abstract class which writes message to the text console. * ...
PHP