This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$criteria->addAlias("acc", AccountPeer::TABLE_NAME); | |
$criteria->addMultipleJoin(array( | |
array(CustomerPeer::ID, AccountPeer::alias("acc", AccountPeer::CUSTOMER_ID)), | |
array(AccountPeer::alias("acc", AccountPeer::BILLING_SYSTEM_ID), BillingSystemPeer::PORTAL_65), | |
array(AccountPeer::alias("acc", AccountPeer::IS_ACTIVE), 1)), | |
Criteria::LEFT_JOIN); | |
$criteria->add(AccountPeer::alias("acc", AccountPeer::ID), null, Criteria::ISNULL); | |
$criteria->setDistinct(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php for ($i=14;$i>0;$i--) : ?> | |
<span class="graph"> | |
<?php | |
$date = new DateTime(); | |
$date->sub(new DateInterval("P".$i."D")); | |
$start = new DateTime($date->format('Y-m-d 00:00:00')); | |
$end = new DateTime($date->format('Y-m-d 23:59:59')); | |
$y = $visitLocation->getVisitsInRange($start, $end); | |
$nextday = new DateTime($date->format('Y-m-d 00:00:00')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get available reserved cabinets not in this project for this customer | |
* | |
* @return array | |
*/ | |
public function getReservedCabinetChoices() | |
{ | |
$id = $this->getId(); | |
$con = Propel::getConnection(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set('America/New_York'); | |
error_reporting(E_ALL); | |
ini_set("display_errors", "1"); | |
$username = ''; | |
$password = ''; | |
$request = array( | |
"state" => "open", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$request->setParameter('widget_user', array_merge( | |
$request->getParameter('widget_user'), | |
array( | |
'row' => $request->getParameter('row'), | |
'col' => $request->getParameter('col') | |
) | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function executeModalFormAjax(sfWebRequest $request) | |
{ | |
eval(sprintf | |
( | |
'$form = new %sForm();', | |
$request->getParameter('form') | |
)); | |
return (string) $form.' <script>'.$form['user_id']->renderJS().'</script>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$crit0 = $c->getNewCriterion(TicketRelatedPeer::A_ID, $id); | |
$crit1 = $c->getNewCriterion(TicketRelatedPeer::B_ID, $id); | |
$crit0->addOr($crit1); | |
$c->add($crit0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ip_keys = array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR'); | |
foreach ($ip_keys as $key) { | |
foreach (explode(',', $_SERVER[$key]) as $ip) { | |
$ip = trim($ip); | |
sfContext::getInstance()->getLogger()->err(sprintf('%s %s', $key, $ip)); | |
} | |
} |
OlderNewer