session_start(); include("session.php"); include("login.php"); // get base domain $urlMap = array('com', 'co.uk','net','gr','eu'); $host = ""; $url = "http://".$_SERVER['SERVER_NAME']; $urlData = parse_url($url); $hostData = explode('.', $urlData['host']); $hostData = array_reverse($hostData); if(array_search($hostData[1] . '.' . $hostData[0], $urlMap) !== FALSE) { $host = $hostData[2] . '.' . $hostData[1] . '.' . $hostData[0]; } elseif(array_search($hostData[0], $urlMap) !== FALSE) { $host = $hostData[1] . '.' . $hostData[0]; } // get base domain end if (!file_exists("files/$host")){ mkdir("files/$host"); } if ($_POST[pagetoedit]!=""){ $page=$_POST[pagetoedit]; $title='titlos'.$page; $selida='selida'.$page; mysql_query("UPDATE sites set $selida='$_POST[text]',$title='$_POST[title]' where domain='$host' "); } $q=mysql_query("SELECT * from sites where domain='$host'")or die (mysql_error()); if (mysql_num_rows($q)>0){ $cell=mysql_fetch_array($q); $titlos=$cell['titlos']; $antikeimeno=$cell['antikeimeno']; $etairia=$cell['etairia']; $afm=$cell['afm']; $armae=$cell['armae']; $gemi=$cell['gemi']; $diefthinsi=$cell['diefthinsi']; $tilefono=$cell['tilefono']; $logo=$cell['logo']; $doy=$cell['doy']; $katigoria=$cell['katigoria']; $email=$cell['email']; $titlos1=$cell['titlos1']; $titlos2=$cell['titlos2']; $titlos3=$cell['titlos3']; $titlos4=$cell['titlos4']; $titlos5=$cell['titlos5']; $titlos6=$cell['titlos6']; $thesistoixeion=$cell['thesistoixeion']; $thema=$cell['thema']; if ($thema==""){ $thema=0; } if ($thema==1){ //blue $tablebg="#095586"; } else if ($thema==2){ //orange $tablebg="#f2be31"; } else if ($thema==3){ //modern $tablebg="#96ca52"; } else{ //bordeaux $tablebg="#86090a"; } } else{ mysql_query("INSERT into sites (`domain`) VALUES ('$host')")or die (mysql_error()); } ?>
if ($p=="admin"){
print "ΠΕΡΙΒΑΛΛΟΝ ΔΙΑΧΕΙΡΙΣΗΣ Αποσύνδεση";
}
else{
$filename = "files/$host/logo.png";
if (file_exists($filename)) {
print "![]() |
|
|
if ($p=="admin"){
if ($titlos1==""){
$titlos1="Νέα σελίδα 1";
}
if ($titlos2==""){
$titlos2="Νέα σελίδα 2";
}
if ($titlos3==""){
$titlos3="Νέα σελίδα 3";
}
if ($titlos4==""){
$titlos4="Νέα σελίδα 4";
}
if ($titlos5==""){
$titlos5="Νέα σελίδα 5";
}
if ($titlos6==""){
$titlos6="Νέα σελίδα 6";
}
print " Οικονομικά Στοιχεία ";
print "$titlos1 ";
print "$titlos2 ";
print "$titlos3 ";
print "$titlos4 ";
print "$titlos5 ";
print "$titlos6 ";
}
else{
if ($thesistoixeion==0){
print "Αρχική ";
}
if ($titlos1!=""){
print "$titlos1 ";
}
if ($titlos2!=""){
print "$titlos2 ";
}
if ($titlos3!=""){
print "$titlos3 ";
}
if ($titlos4!=""){
print "$titlos4 ";
}
if ($titlos5!=""){
print "$titlos5 ";
}
if ($thesistoixeion==1){
print "Οικονομικά Στοιχεία ";
}
print "Επικοινωνία ";
}
?>
|
||
if ($p=="admin" and ($_GET[g]=="editecon" || $_POST[g]=="editecon")){
include('admin/econedit.php');
}
if ($p=="admin" and $_GET[editpage]!="" ){
include('admin/editpage.php');
}
?>
|
||
Copyright © 2019 - EFDI Business & Advirory Solutions |