47 final public function write($data)
49 $this->wfp = fopen($this->name,
"wb");
50 fwrite($this->wfp,$data);
57 final public function read()
59 $this->rfp = fopen($this->name,
"rb");
61 while (!feof($this->rfp))
63 $this->contents .= fread($this->rfp, 8192);
66 return $this->contents;
86 chmod(
"../fw_core/", 0777);
87 chmod(
"../fw_cache/", 0777);
88 chmod(
"../fw_headers/", 0777);
89 chmod(
"../fw_modules/", 0777);
90 chmod(
"../fw_libraries/", 0777);
91 chmod(
"../fw_script/", 0777);
100 chmod(
"../fw_core/", 0700);
101 chmod(
"../fw_cache/", 0700);
102 chmod(
"../fw_headers/", 0700);
103 chmod(
"../fw_modules/", 0700);
104 chmod(
"../fw_libraries/", 0700);
105 chmod(
"../fw_script/", 0700);
130 $this->header=
'<!DOCTYPE html><head>';
131 $this->body=
'</head>';
140 $this->header .=
'<meta name="keywords" content="'.$kw.
'" />';
149 $this->header .=
'<meta http-equiv="content-type" content="text/html; charset='.$ec.
'" />';
160 $t = substr($t,0,66).
'...';
162 $this->header .=
'<title>'.$t.
'</title>';
171 if(strlen($data)>159)
173 $data = substr($data,0,155).
'...';
175 $this->header .=
'<meta name="description" content="'.$data.
'">';
183 $this->header .=
'<meta name="ROBOTS" content="NOODP"><meta name="Slurp" content="NOYDIR">';
192 $this->header .=
'<meta name="author" content="'.$author.
'"><meta name="generator" content="Sencillo Framework">';
201 $this->header .= $code;
210 $this->seo = $this->header.$this->body;
235 $this->info=array(
'CMS'=>
'Sencillo',
236 'FWK'=>
'Sencillo v14.008',
237 'ARN'=>
'Bc.Peter Horváth, Mastery s.r.o. CEO and FOUNDER',
238 'CPY'=>
'(c)COPYRIGHT 2011-'.date(
'Y').
' Bc.Peter Horváth',
239 'DTC'=>
'01.08.2014:00.00:14.008',
248 $this->authorized=array();
249 $this->authorized[0]=md5($_SERVER[
'SERVER_NAME']);
250 $this->authorized[1]=md5(
"");
251 $this->authorized[2]=md5(
"");
252 if(($this->authorized[0]==$this->authorized[1])||($this->authorized[0]==$this->authorized[2]))
259 die($this->info[
'PID']);