OpenSencillo  2015.002
coreSencillo Class Reference

Public Member Functions

 __construct ()
 authorized ($domains)
 __destruct ()

Data Fields

 $info

Private Attributes

 $authorized
 $pid

Detailed Description

Definition at line 242 of file core_functions.php.


Constructor & Destructor Documentation

Add default information about Sencillo

Definition at line 251 of file core_functions.php.

        {
                $this->info=array('CMS'=>'Sencillo',
                                                  'FWK'=>'Sencillo v15.002',
                                                  'ARN'=>'Bc.Peter Horváth, Mastery s.r.o. CEO and FOUNDER',
                                                  'CPY'=>'(c)COPYRIGHT 2011-'.date('Y').' Bc.Peter Horváth',
                                                  'DTC'=>'01.02.2015:00.00:00.002',
                                                  'PID'=>'ILLEGAL LICENCE! PLEASE CONTACT ph@mastery.sk');
        }

Definition at line 287 of file core_functions.php.

        {
        }

Member Function Documentation

authorized ( domains)

Definition at line 266 of file core_functions.php.

        {
                if(is_array($domains))
                {
                        $this->authorized=$domains;
                        foreach($this->authorized as $value) 
                        {
                                if($_SERVER['SERVER_NAME']==$value)
                                {
                                        $this->pid=true;
                                        return $this->pid;
                                }
                                else
                                {
                                        $this->pid=false;
                                        return $this->pid;
                                }
                        }
                }
        }

Field Documentation

$authorized [private]

Definition at line 245 of file core_functions.php.

$info

Definition at line 244 of file core_functions.php.

$pid [private]

Definition at line 246 of file core_functions.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables