|LF_STANDARD|
|?TREE=» `LANG_HOME` » `LANG_MANAGE_SKINS`|
|?HELP_SECTION=`RESELLER_HELPER`/skins.html|
|HTM_CONFIG|
|HTM_RESELLER_TOP|
|$|SK_PHP|
pagetit($pagetit, $tree);
$arrPath = getpath();
$ownerType=$arrPath['owner'];
$path=$arrPath['path'];
if($ownerType=="admin" && "|USERCREATOR|"=="root") $show_options = true;
if($ownerType=='reseller' && file_exists('/home/|USERNAME|/skins/|SKIN|') && '/home/|USERNAME|/skins/|SKIN|/'==|SK_ROOT|) $show_options = true;
if("|FORCE_SKIN_OPTIONS|"=="1") $show_options = true;
if("|USERNAME|"=="admin" && "|USERCREATOR|"!="root") $show_warn = true;
?>
';
} ?>
Everything sesms to be ok';
$troubles1 = '';
if(!is_writeable($path)) { $troubles1 .= ''.$path.' is not writeable
'; }
if(!is_writeable($path."data")) { $troubles1 .= ''.$path.'data is not writeable
'; }
if(!is_writeable($path."key.php")) { $troubles1 .= ''.$path.'key.php is not writeable
'; }
if(@gethostbyname("licencias.outservices.net")!='190.183.63.5') { $troubles1 .= 'Your server was unable to resolve licencias.outservices.net
'; }
if($path=="/usr/local/directadmin/data/skin_data/capri/") {
if(ini_get("allow_url_fopen")==0 || ini_get("allow_url_fopen")=="off") { $troubles1 .= 'allow_url_fopen is disabled in your php.ini. You can not update logos until you enable it.
'; }
}
// actualizador *****************************************************************************************************
if($colorset && ($colorset==1 || $colorset==2)) {
if($path) {
whitefile($colorset, $path."color");
$upgrade=1;
}
}
// cambio logo ******************************************************************************************************
if($imagelogo && $imagelogo!='' && urldecode($imagelogo!='http://')) {
if($img = @file_get_contents(urldecode($imagelogo))) {
whitefile(1, $path."changeimagelogo");
whitefile($img, $path."imagelogo");
$msg = "|LANG_LOGO_DONE|";
} else {
$error = "|LANG_FETCH_URL_ERROR|";
}
}
// alloresellerslogo ******************************************************************************************************
if($resellerslogo && $resellerslogo==1) {
if($allow==1) {
whitefile(1, $path."allowcustomlogo");
if(!file_exists($path."allowcustomlogo")) { $troubles1 .= 'Unable to create files in '.$path.'
'; }
} else {
@unlink($path."allowcustomlogo");
}
}
// restorelogo ******************************************************************************************************
if($restorelogo==1) {
whitefile(1, $path."restoreimagelogo");
$msg = "|LANG_LOGO_RESTORED|";
}
// actualizador *****************************************************************************************************
if($upgrade && $upgrade==1) {
if($path) {
whitefile("1", $path."upgrade");
$doupgrade=true;
if(!file_exists($path."upgrade")) {
$troubles1 .= 'Unable to create files in '.$path.'
';
} else {
if($msg && $msg!='') $msg .= "\n|LANG_REQUEST_PENDING|";
else $msg = "|LANG_REQUEST_PENDING|";
}
}
}
// guardo nueva key (licencia)
if($newkey) { saveKey($newkey); }
if($license = getKey()) {
$lic_status = checkLicence($license);
if($lic_status['status']=="active") {
$lstatus='Active';
} else {
$lstatus=''.ucwords($lic_status['status']).' '.$lic_status['message'];
}
} else {
$lstatus='Not entered';
}
if($versions = @file_get_contents("http://www.outservices.net/versions/capri.txt")) {
list($ava_version, $da_version) = explode('-', $versions);
} else {
$ava_version = 'n/a';
$da_version = 'n/a';
}
/**** mensaje ****/
if($msg && $msg!='') {
echo ''.nl2br(htmlspecialchars($msg)).'
';
@unlink($path."results");
}
/**** mensaje ****/
$color = openfile($path."color");
?>
'.nl2br(htmlspecialchars($msg)).'';
@unlink($path."results");
}
if($error && $error!='') {
echo ''.nl2br(htmlspecialchars($error)).'
';
@unlink($path."results");
}
/**** mensaje ****/
?>
|LANG_SKIN_MANAGER| |
|LANG_LOGO_HELP| |
|LANG_LOGO_URL|: |
|
DONE|
|HTM_RESELLER_BOTTOM|