Example #1
0
 public function __construct($smallmap)
 {
     // Map is too big, so up the memory-limit
     parent::__construct($smallmap);
     if (!$this->smallmap) {
         ini_set('memory_limit', "32M");
     }
 }
Example #2
0
 public function __construct()
 {
     parent::__construct(false);
 }
Example #3
0
 public function countryFlag($terrID, $countryID)
 {
     if ($this->nsc[1] == 1 && $terrID == 1 && $countryID == 6) {
         return;
     }
     if ($this->nsc[2] == 1 && $terrID == 2 && $countryID == 6) {
         return;
     }
     if ($this->nsc[3] == 1 && $terrID == 3 && $countryID == 1) {
         return;
     }
     if ($this->nsc[4] == 1 && $terrID == 4 && $countryID == 1) {
         return;
     }
     if ($this->nsc[5] == 1 && $terrID == 5 && $countryID == 1) {
         return;
     }
     if ($this->nsc[6] == 1 && $terrID == 6 && $countryID == 2) {
         return;
     }
     if ($this->nsc[7] == 1 && $terrID == 7 && $countryID == 2) {
         return;
     }
     if ($this->nsc[8] == 1 && $terrID == 8 && $countryID == 2) {
         return;
     }
     parent::countryFlag($terrID, $countryID);
 }