SMSSend_Site - <?php / / $Id$ / username/email to login...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
<?php // $Id$ / // username/email to login with define('SWS_PARAM_USER', 'login_user'); // password to login with define('SWS_PARAM_PASS', 'login_pass'); // country code of number includes '+' define('SWS_PARAM_CCODE', 'ccode'); // country code of number excludes '+' define('SWS_PARAM_CCODE_NP', 'ccode_np'); // number to send to define('SWS_PARAM_NUMBER', 'number'); // number to send to (excluding '0', if present) define('SWS_PARAM_NUMBER_NZ', 'number_nz'); // message to send define('SWS_PARAM_MESSAGE', 'message'); d // require SMS_Site require_once(SWS_CLASS_DIR.'SMS_Site.php'); // require HTTP_Request_Common from HTTP Navigator classes require_once(HTTPNAV_ROOT.'HTTP_Request_Common.php'); // require Debug from HTTP Navigator classes require_once(HTTPNAV_ROOT.'Debug.php'); r /** * SMSSend Site * * This class provides limited support for parsing SMSSend scripts. * * SMS Web Sender requires certain standard parameters be available for all * SMS Sites, therefore, along with the SMSSend script, you will also need to * supply a config file. The config file should map the SMSSend parameters and * error codes to the standard SMS Web Sender ones. * * Please consider this class experimental, I haven't tested it enough so it * might produce odd results. I also haven't looked at the SMSSend source code * properly, so don't expect results identical to SMSSend. * I've been relying on the SMSSend scripting docs: * <http://zekiller.skytech.org/fichiers/smssend/doc_scr_en.html> * * These features are still not supported by this class: * * - NoAdd <Name> * - RTGetForm-<num>-<ind> * - RTSubURL-<num>-<sub> * - RTFollowFrame-<num>-<name> * - RTRegex-<num>-<gpos>-<pos>-<regex> * * @author Keyvan Minoukadeh <keyvan@k1m.com> * @version 2.0 */ class SMSSend_Site extends SMS_Site { /** * Phase Results * * Array holding instances if HTTP_Response * @var array
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
*/ var $phase_results; /** * Phase cookies * * Array holding cookies created by the SetCookie SMSSend command * @var array */ var $phase_cookies; /** * Param mapping * * Associative array mapping SMSSend params to the standard SWS ones. * @var array */ var $param_mapping; /** * Param options * * @var array */ var $param_options; /** * Param values * * @var array */ var $param_values; /** * Error mapping * * Associative array mapping SMSSend script error codes to the standard SWS * ones. * @var array */ var $error_mapping; /** * HTTP Request message * * @var object HTTP_Request */ var $http_request; /** * Number format * * @var string */ var $number_format; /** * Search *
Background image of page 2
* @var array */ var $search; /** * Script * * @var array */ var $script; function SMSSend_Site() { parent::SMS_Site(); $this->phase_results = array(); $this->phase_cookies = array(); } /** * Script exists * * @param string $site_name * @return bool * @static */ function script_exists($site_name) { $site_name = strtolower($site_name); is_readable(SWS_SMSSEND_SITE_DIR.$site_name.'.sms'));
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 14

SMSSend_Site - &lt;?php / / $Id$ / username/email to login...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online