uawdijnntqw1x1x1
IP : 3.15.143.241
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
.trash
/
wp-includes
/
.
/
..
/
quran
/
includes
/
.
/
tpl.php
/
/
<?php class Template { public $sitename; public $siteurl; public $title; public $description; public $keywords; public $Templatefolder; public $footercode; public $headercode; public $headertext; public $bodycode; public $nav; public $TemplateType = 1; public $closeyoursite = 0; public $closeyoursitecause; public $Allow_Powered_by; public $copyright; public $nofollow; function tpl_header() { global $Q_W; $openfile = "".$this->Templatefolder."/header.htm"; if(!file_exists($this->Templatefolder)){ $read = '<div style="text-align:center;">FOLDER TEMPLATES <b>'.$this->Templatefolder.'</b> NOT FOUND</div>'; exit; } if (!file_exists($openfile)){ $read = '<div style="text-align:center;">FILE TEMPLATE header.htm NOT FOUND INSIDE FOLDER '.$this->Templatefolder.'</div>'; exit; } if($this->description == ""){ $pagedescription = $this->title; }else{ $pagedescription = $this->description; } if($this->keywords == ""){ $pagekeywords = str_replace(" ",",",$this->title); }else{ $pagekeywords = $this->keywords; } $writefile = fopen($openfile,"r"); $read = fread($writefile,filesize($openfile)); $read = str_replace("{title}",$this->title,$read); $read = str_replace("{sitename}",$this->sitename,$read); $read = str_replace("{description}",$pagedescription,$read); $read = str_replace("{keywords}",$pagekeywords,$read); $read = str_replace("{style}",$this->Templatefolder,$read); $read = str_replace("{js}",$this->headercode,$read); $read = str_replace("{bodycod}",$this->bodycode,$read); $read = str_replace("{code}",$this->headertext,$read); $read = str_replace("{nav}",$this->nav,$read); $read = preg_replace('/LANG\[([0-9]*?)\]/e','$Q_W[\\1]',$read); fclose ($writefile); return $read; } function tpl_footer() { global $Q_W; $openfile = "".$this->Templatefolder."/footer.htm"; if (!file_exists($openfile)){ $read = '<div style="text-align:center;">FILE TEMPLATE footer.htm NOT FOUND INSIDE FOLDER '.$this->Templatefolder.'</div>'; }else{ $writefile=@fopen($openfile,"r"); $read = ''; if($this->Allow_Powered_by == 1){ $read .= '<div style="text-align:center; padding:10px 0 0 0; clear:both;">Programming by <a href="http://www.nwahy.com">nwahy</a> , Powered by <a href="http://www.quran-for-all.com">Quran For All</a> version 1.2</div>'; }else{ $read .= ''; } $read .= $this->footercode; $read .= @fread($writefile,filesize($openfile)); $read = str_replace("{sitename}",$this->sitename,$read); $read = str_replace("{siteurl}",$this->siteurl,$read); $read = str_replace("{copyright}",$this->copyright,$read); $read = preg_replace('/LANG\[([0-9]*?)\]/e','$Q_W[\\1]',$read); @fclose ($writefile); } return $read; } function tpl_content($title,$content) { $openfile = "".$this->Templatefolder."/content-ar.htm"; if (!file_exists($openfile)){ $read = '<div style="text-align:center;">FILE TEMPLATE content-ar.htm NOT FOUND INSIDE FOLDER '.$this->Templatefolder.'</div>'; }else{ $writefile=@fopen($openfile,"r"); $read = @fread($writefile,filesize($openfile)); $read = str_replace("{title}",$title,$read); $read = str_replace("{content}",$content,$read); $read = str_replace("{style}",$this->Templatefolder,$read); @fclose ($writefile); } return $read; } function tpl_content_en($title,$content) { $openfile = "".$this->Templatefolder."/content-en.htm"; if (!file_exists($openfile)){ $read = '<div style="text-align:center;">FILE TEMPLATE content-en.htm NOT FOUND INSIDE FOLDER '.$this->Templatefolder.'</div>'; }else{ $writefile=@fopen($openfile,"r"); $read = @fread($writefile,filesize($openfile)); $read = str_replace("{title}",$title,$read); $read = str_replace("{content}",$content,$read); $read = str_replace("{style}",$this->Templatefolder,$read); @fclose ($writefile); } return $read; } function tpl_menu_ar($title,$content) { $openfile = "".$this->Templatefolder."/menu-ar.htm"; if (!file_exists($openfile)){ $read = '<div style="text-align:center;">FILE TEMPLATE menu-ar.htm NOT FOUND INSIDE FOLDER '.$this->Templatefolder.'</div>'; }else{ $writefile=@fopen($openfile,"r"); $read = @fread($writefile,filesize($openfile)); $read = str_replace("{title}",$title,$read); $read = str_replace("{content}",$content,$read); $read = str_replace("{style}",$this->Templatefolder,$read); @fclose ($writefile); } return $read; } function tpl_menu_en($title,$content) { $openfile = "".$this->Templatefolder."/menu-en.htm"; if (!file_exists($openfile)){ $read = '<div style="text-align:center;">FILE TEMPLATE menu-en.htm NOT FOUND INSIDE FOLDER '.$this->Templatefolder.'</div>'; }else{ $writefile=@fopen($openfile,"r"); $read = @fread($writefile,filesize($openfile)); $read = str_replace("{title}",$title,$read); $read = str_replace("{content}",$content,$read); $read = str_replace("{style}",$this->Templatefolder,$read); @fclose ($writefile); } return $read; } function tpl_body_1($right,$left){ $code = '<div id="bodypages">'; $code .= '<div class="rightbody">'; $code .= $right; $code .= '</div>'; $code .= '<div class="leftbody">'; $code .= $left; $code .= '</div> </div>'; return $code; } function tpl_body_2($text){ $code = $text; return $code; } function Template_view($c1="",$c2="",$c3=""){ $code = $this->tpl_header(); if($this->closeyoursite == 1){ $code .= $this->closeyoursitecause; }else{ if($this->TemplateType == 1){ $code .= $this->tpl_body_1($c1,$c2); }elseif($this->TemplateType == 2){ $code .= $this->tpl_body_2($c1); } } $code .= $this->tpl_footer(); return $code; } } $Template = new Template(); $Template->sitename = $sitename; $Template->siteurl = $siteurl; $Template->footercode = $textfooter; $Template->headercode = $headercode; $Template->headertext = $textheader; $Template->bodycode = $bodycode; if(isset($_GET['l']) AND intval($_GET['l']) != 0){ $Template->Templatefolder = themefolder(intval($_GET['l'])); $Template->nav = navbar(intval($_GET['l'])); }else{ $Template->Templatefolder = themefolder(0); $Template->nav = navbar(0); } $Template->closeyoursite = $closesite; $Template->closeyoursitecause = $closesitetext; $Template->Allow_Powered_by = 0; $Template->copyright = 'Powered by <a href="http://www.nwahy.com">Quran For All</a> version 1.2'; ?>
/home/sudancam/.trash/wp-includes/./../quran/includes/./tpl.php