Example #1
0
File: Counter.php Project: Gorp/pr
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #2
0
 public function counterAction()
 {
     $idcounter = $this->_getParam('id');
     $ip = $_SERVER['REMOTE_ADDR'];
     //$ip = rand(0, 1000);
     echo Model_Counter::update_counter($idcounter, $ip);
     exit;
     //$ip = $_SERVER['IP_ADDRESS']
 }