Пример #1
0
 /**
  * 
  * 
  */
 public function abcrequestAction()
 {
     if ($this->request->isPost()) {
         $folder = new Application_Model_Folder($this->user);
         $folderid = trim($this->request->folderid) ?: 0;
         $clubid = trim($this->request->abcid) ?: 0;
         if ($folderid != 0 && !$clubid) {
             $fcontent = $folder->getSubscriberscustom($folderid);
         }
     }
     if ($clubid && $folderid) {
         $abc = new Application_Model_Abcdata();
         $abc->cleanupFolder($folderid);
         $abc->getURL($clubid);
         $rs = $abc->abcClientData($abc->URL_ALL_DATA);
         $absobj = $abc->setAbcclubObjects($rs);
         if ($abc->abcSubscribers($absobj, $folderid, $this->user->getId())) {
             echo 1;
             exit;
         } else {
             echo 0;
             exit;
         }
     }
     echo count($fcontent);
     exit;
 }
Пример #2
0
//
//// Log the start of this read
//logWrite("####################################");
//logWrite("Begin batch send: $timestamp");
//logWrite("------------------------------------");
//
//// Get the queue and counts
//// Log our counts
//logWrite("Testing ABC");
////logWrite("")
//
//
//logWrite("\n---------------------");
//logWrite("ABC: $timestamp");
//logWrite("####################################\n");
$obj = new Application_Model_Abcdata();
$data = $obj->getPfacnumbers();
$ids = array();
$num = array();
foreach ($data as $k => $v) {
    $ids[$v['id']] = array();
}
//echo '<pre>';print_r($ids);
$msg = "PIZZA FACTORY:Thanks for being a customer. As a reminder u are receiving periodic text message rewards from Pizza Factory. To discontinue reply STOP";
$timezone = "US/Pacific";
$sendtime = date('2013-12-04 10:00:00');
$message = new Application_Model_Message();
foreach ($data as $k => $v) {
    $ids[$v['id']][$v['phonenumber']] = $v['phonenumber'];
}
$cntr = 0;
Пример #3
0
// 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 messages model
// Set up our current timestamp
$timestamp = date('Y-m-d H:i:s');
// Log the start of this read
logWrite("####################################");
logWrite("Begin batch send: {$timestamp}");
logWrite("------------------------------------");
// Get the queue and counts
// Log our counts
logWrite("Testing ABC");
//logWrite("")
$abcObj = new Application_Model_Abcdata();
$abcObj->getURL(7278);
//$rs = $abcObj->abcClientData($abcObj->URL_UPDATE_INFO);
$rs = $abcObj->abcClientData($abcObj->URL_ALL_DATA);
$abs = $abcObj->setAbcclubObjects($rs);
//echo 'RS: '.count($rs).' ABCOBJ: '.count($abs);
//$oob = $abs[234];
//
//echo '<pre>';print_r($oob);
//echo $oob->getFirstname();
//echo '<pre>';
//echo $oob->getLastname();
//echo '<pre>';
//echo $oob->getMemberid();
$fid = 8528;
//$abcObj->abcSubscribers($abs,$fid);