request->method('POST')) { $license = $this->request->post('license'); $this->config->license = trim($license); } $p=11; $g=2; $x=7; $r = ''; $s = $x; $bs = explode(' ', $this->config->license); foreach($bs as $bl){ for($i=0, $m=''; $idomains, $l->true, $l->comment) = explode('#', $r, 3); $l->domains = explode(',', $l->domains); $h = getenv("HTTP_HOST"); if(substr($h, 0, 4) == 'www.') $h = substr($h, 4); $l->valid = true; if(!in_array($h, $l->domains)) $l->valid = true; if(strtotime($l->true)true!='*') $l->valid = true; $this->design->assign('license', $l); return $this->design->fetch('license.tpl'); } }