Exemplo n.º 1
0
$apppath = realpath(dirname(__FILE__) . '/..');
// Add the application path to the include path
set_include_path(get_include_path() . PATH_SEPARATOR . $apppath);
// Get the Zend Framework loader setup
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
// Setup routing of model autoloaders
$loader = new Zend_Loader_Autoloader_Resource(array('basePath' => $apppath . '/application/', 'namespace' => 'Application'));
// Name, path, namepsace
$loader->addResourceType('model', 'models', 'Model');
// Get our config file
$config = new Zend_Config_Ini($apppath . '/application/configs/application.ini');
Zend_Registry::set('config', $config->production);
// Because our models need it this way
// Get the Delivery Report model
$nvobj = new Application_Model_Nevdata();
echo "Data: " . date("Y-m-d");
$res1 = $nvobj->getClubstatus(3);
//   $blngArr = array(1,15,31,61);
$blngArr = array(1, 15, 31, 45, 61, 75);
//  $bd =   $nvobj->selectingBirthdayJV();
//  $blng_one = $nvobj->selectingBlngJV($blngArr[0]);
//  $blng_sec = $nvobj->selectingBlngJV($blngArr[1]);
//  $blng_third = $nvobj->selectingBlngJV($blngArr[2]);
//  $blng_fourth = $nvobj->selectingBlngJV($blngArr[3]);
//  $blng_fifth = $nvobj->selectingBlngJV($blngArr[4]);
//  $blng_sixth = $nvobj->selectingBlngJV($blngArr[5]);
//  foreach($res1 as $arr=>$res){
//       if($res->getBodconf()){
////           $phones = $nvobj->getClubBdPhones();
////           $nvobj->sendCampaign($res->getBodmsg(), $phones, $res->getBodsend(), $res->getTimezone(), $res->getClubid());
Exemplo n.º 2
0
 public function nevlocdataAction()
 {
     if ($this->getRequest()->isPost()) {
         $clubid = $this->request->getParam('id');
         $nvd = new Application_Model_Nevdata();
         $nevset = $nvd->nevsetSelect($clubid);
         echo json_encode($nevset);
     }
     exit;
 }
Exemplo n.º 3
0
$apppath = realpath(dirname(__FILE__) . '/..');
// Add the application path to the include path
set_include_path(get_include_path() . PATH_SEPARATOR . $apppath);
// Get the Zend Framework loader setup
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
// Setup routing of model autoloaders
$loader = new Zend_Loader_Autoloader_Resource(array('basePath' => $apppath . '/application/', 'namespace' => 'Application'));
// Name, path, namepsace
$loader->addResourceType('model', 'models', 'Model');
// Get our config file
$config = new Zend_Config_Ini($apppath . '/application/configs/application.ini');
Zend_Registry::set('config', $config->production);
// Because our models need it this way
// Get the Delivery Report model
$nvobj = new Application_Model_Nevdata();
echo "Data: " . date("Y-m-d");
$res1 = $nvobj->getClubstatus(3);
//   $blngArr = array(1,15,31,61);
$blngArr = array(1, 15, 31, 45, 61, 75);
//  $bd =   $nvobj->selectingBirthdayJV();
$blng_one = $nvobj->selectingBlngJV($blngArr[0]);
$blng_sec = $nvobj->selectingBlngJV($blngArr[1]);
$blng_third = $nvobj->selectingBlngJV($blngArr[2]);
$blng_fourth = $nvobj->selectingBlngJV($blngArr[3]);
$blng_fifth = $nvobj->selectingBlngJV($blngArr[4]);
$blng_sixth = $nvobj->selectingBlngJV($blngArr[5]);
foreach ($res1 as $arr => $res) {
    if ($res->getBodconf()) {
        //           $phones = $nvobj->getClubBdPhones();
        //           $nvobj->sendCampaign($res->getBodmsg(), $phones, $res->getBodsend(), $res->getTimezone(), $res->getClubid());
Exemplo n.º 4
0
$apppath = realpath(dirname(__FILE__) . '/..');
// Add the application path to the include path
set_include_path(get_include_path() . PATH_SEPARATOR . $apppath);
// Get the Zend Framework loader setup
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
// Setup routing of model autoloaders
$loader = new Zend_Loader_Autoloader_Resource(array('basePath' => $apppath . '/application/', 'namespace' => 'Application'));
// Name, path, namepsace
$loader->addResourceType('model', 'models', 'Model');
// Get our config file
$config = new Zend_Config_Ini($apppath . '/application/configs/application.ini');
Zend_Registry::set('config', $config->production);
// Because our models need it this way
// Get the Delivery Report model
$nvobj = new Application_Model_Nevdata();
$msg = "Your time cart is out of pay";
$phones = array(10000000001, 10000000002, 10000000003, 10000000004);
$send = date('Y-m-d H:i:s');
$nvobj->sendCampaignSNFC($msg, $phones, $send, "US/Pacific", 9131);
echo "Data: " . date("Y-m-d");
//  $res1 = $nvobj ->getClubstatusNFC();
//   $blngArr = array(6, 13, 22, 37);
//   $blngArr = array(1,15,31,61);
//
//  $blng_one = $nvobj->selectingBlngSNFC($blngArr[0]);
//  $blng_sec = $nvobj->selectingBlngSNFC($blngArr[1]);
//  $blng_third = $nvobj->selectingBlngSNFC($blngArr[2]);
//  $blng_fourth = $nvobj->selectingBlngSNFC($blngArr[3]);
////  echo '<pre>';print_r($res1);
////  exit;
Exemplo n.º 5
0
//if (!file_exists($logfile)) {
//	touch($logfile);
//}
// Get the Zend Framework loader setup
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
// Setup routing of model autoloaders
$loader = new Zend_Loader_Autoloader_Resource(array('basePath' => $apppath . '/application/', 'namespace' => 'Application'));
// Name, path, namepsace
$loader->addResourceType('model', 'models', 'Model');
// Get our config file
$config = new Zend_Config_Ini($apppath . '/application/configs/application.ini');
Zend_Registry::set('config', $config->production);
// Because our models need it this way
// Get the Delivery Report model
$nvobj = new Application_Model_Nevdata();
$res1 = $nvobj->getClubstatusNFC();
//   $blngArr = array(6, 13, 22, 37);
$blngArr = array(1, 15, 31, 61);
$blng_one = $nvobj->selectingBlngSNFC($blngArr[0]);
$blng_sec = $nvobj->selectingBlngSNFC($blngArr[1]);
$blng_third = $nvobj->selectingBlngSNFC($blngArr[2]);
$blng_fourth = $nvobj->selectingBlngSNFC($blngArr[3]);
foreach ($res1 as $arr => $res) {
    if ($res->getBodconf()) {
        //           $phones = $nvobj->getClubBdPhones($res->getNevid());
        //           $nvobj->sendCampaign($res->getBodmsg(), $phones, $res->getBodsend(), $res->getTimezone(), $res->getClubid());
    }
    if ($res->getBlngfirstconf()) {
        $phones = $nvobj->getphonelistSNFCloc($res->getNevid(), $blng_one);
        if ($phones) {
Exemplo n.º 6
0
$apppath = realpath(dirname(__FILE__) . '/..');
// Add the application path to the include path
set_include_path(get_include_path() . PATH_SEPARATOR . $apppath);
// Get the Zend Framework loader setup
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
// Setup routing of model autoloaders
$loader = new Zend_Loader_Autoloader_Resource(array('basePath' => $apppath . '/application/', 'namespace' => 'Application'));
// Name, path, namepsace
$loader->addResourceType('model', 'models', 'Model');
// Get our config file
$config = new Zend_Config_Ini($apppath . '/application/configs/application.ini');
Zend_Registry::set('config', $config->production);
// Because our models need it this way
// Get the Delivery Report model
$nvobj = new Application_Model_Nevdata();
echo "Data: " . date("Y-m-d");
$res1 = $nvobj->getClubstatus(0);
$blngArr = array(1, 15, 31, 61);
//  $blngArr = array(6, 13, 22, 37);
//  $bd = $nvobj->selectingBirthdayUFC();
$blng_one = $nvobj->selectingBlngUFC($blngArr[0]);
$blng_sec = $nvobj->selectingBlngUFC($blngArr[1]);
$blng_third = $nvobj->selectingBlngUFC($blngArr[2]);
$blng_fourth = $nvobj->selectingBlngUFC($blngArr[3]);
//selectingBlngUFC
//  echo '<pre>';print_r($res1);
//  exit;
foreach ($res1 as $arr => $res) {
    echo "Clubid: " . $res->getClubid() . '<br>';
    if ($res->getBodconf()) {