File Manager
<?php
if (!cmsms()) exit;
if (!$this->VisibleToAdminUser()) {
$this->ShowErrors($this->Lang("accessdenied"));
return;
}
if (!isset($params["tab"]))$params["tab"]="settings";
$gCms=cmsms();
$config=$gCms->GetConfig();
//Just for safety
$this->CreatePermission('allowadvancedprofile', $this->Lang('allowadvancedprofile'));
/*
$file=@file($config["root_url"]."/modules/TinyMCE/tinyconfig.php");
if (!$file) {
$this->ShowErrors($this->Lang("cannotreadconfig"));
}
*/
if ($this->GetPreference("usestaticconfig")=="1") {
if (!$this->IsTempWritable()) {
echo $this->ShowErrors($this->Lang("usestaticconfigwarning"));
} else {
if ($this->GetPreference("usestaticconfig")) {
$this->SaveStaticConfig();
}
}
}
echo $this->StartTabHeaders();
echo $this->SetTabHeader("settings",$this->Lang("settings"), ($params["tab"] == "settings")?true:false);
echo $this->SetTabHeader("profiles",$this->Lang("profiles_tab"), ($params["tab"] == "profiles")?true:false);
echo $this->SetTabHeader("plugins",$this->Lang("plugins_tab"), ($params["tab"] == "plugins")?true:false);
echo $this->SetTabHeader("styles",$this->Lang("styles_tab"), ($params["tab"] == "styles")?true:false);
echo $this->SetTabHeader("advanced",$this->Lang("advanced_tab"), ($params["tab"] == "advanced")?true:false);
echo $this->SetTabHeader("testarea",$this->Lang("testarea_tab"), ($params["tab"] == "testarea")?true:false);
echo $this->EndTabHeaders();
echo $this->StartTabContent();
echo $this->StartTab("settings");
include(dirname(__FILE__).'/function.admin_settings.php');
echo $this->EndTab();
echo $this->StartTab("profiles");
include(dirname(__FILE__).'/function.admin_profiles.php');
echo $this->EndTab();
echo $this->StartTab("plugins");
include(dirname(__FILE__).'/function.admin_plugins.php');
echo $this->EndTab();
echo $this->StartTab("styles");
include(dirname(__FILE__).'/function.admin_styles.php');
echo $this->EndTab();
echo $this->StartTab("advanced");
include(dirname(__FILE__).'/function.admin_advanced.php');
echo $this->EndTab();
echo $this->StartTab("testarea");
include(dirname(__FILE__).'/function.admin_testarea.php');
echo $this->EndTab();
echo $this->EndTabContent();
//echo$this->CreateInputSubmit($id, "resetall", $this->Lang("resetall"),"","",$this->Lang("confirmresetall")));
?>
File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com