define('PATH_RELATIVE','/far/');
?>
Warning: session_start() [function.session-start]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /home/cameiran/public_html/far/subsystems/sessions.php on line 61
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/cameiran/public_html/far/overrides.php:12) in /home/cameiran/public_html/far/subsystems/sessions.php on line 61
Warning: session_start() [function.session-start]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /home/cameiran/public_html/far/subsystems/sessions.php on line 61
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/cameiran/public_html/far/overrides.php:12) in /home/cameiran/public_html/far/subsystems/sessions.php on line 61
// exponent Javascript Support Systems
//EXPERIMENTAL: introduction of a common namespace object
//TODO: migrate all of E`s JS API to this new object
Exponent = new Object();
Exponent.LANG = "far_IR";
Exponent.PATH_RELATIVE = "/far/";
Exponent.THEME_RELATIVE = "/far/themes/cameIran_fartheme/";
Exponent.ICON_RELATIVE = "/far/iconset/";
var onLoadInits = new Array(); // array of functions
var openWindows = new Array(); // array of window references.
// Compatibility layer
function pathosJSinitialize() {
exponentJSinitialize();
}
function pathosJSregister(func) {
exponentJSregister(func);
}
function pathosGetCookie(name) {
return exponentGetCookie(name);
}
//End compatibility layer
function exponentJSinitialize() {
for (i = 0; i < onLoadInits.length; i++) {
onLoadInits[i]();
}
}
function exponentJSregister(func) {
onLoadInits.push(func);
}
var PATH_RELATIVE = "/far/";
var THEME_RELATIVE = "/far/themes/cameIran_fartheme/";
var ICON_RELATIVE = "/far/iconset/";
function exponentGetCookie(name) {
cookiestr = document.cookie;
var nameIndex = cookiestr.indexOf(name);
if (nameIndex != -1) { // found the named cookie
var startOffset = nameIndex+name.length+1;
var endOffset = cookiestr.indexOf(";",startOffset);
if (endOffset == -1) endOffset = cookiestr.length;
return cookiestr.substring(startOffset,endOffset);
}
return "";
}
function makeLink() {
var link = "";
var link = "";
var args = makeLink.arguments;
link = PATH_RELATIVE + "index.php?";
for (var i = 0; i < args.length; i+=2) {
var v = args[i+1];
if (v != null && v != "") {
link += escape(args[i]) + "=" + escape(args[i+1]) + "&";
}
}
return link.substr(0,link.length - 1);
}
function openWindow(url,name,options) {
for (key in openWindows) {
if (key == name) {
if (openWindows[key].focus()) {
return;
} else {
break;
}
}
}
openWindows[name] = window.open(url,name,options);
}
function openSelector(mod,dest,vmod,vview) {
var url = PATH_RELATIVE+"source_selector.php?showmodules="+mod+"&dest="+escape(dest)+"&vmod="+vmod+"&vview="+vview;
openWindow(url,'sourcePicker','title=no,toolbar=no,width=640,height=480,scrollbars=yes');
}
function openContentSelector(mod,dest,view) {
var url = PATH_RELATIVE+"content_selector.php?showmodules="+mod+"&dest="+escape(dest)+"&vmod=containermodule&vview="+view;
openWindow(url,'contentPicker','title=no,toolbar=no,width=640,height=480,scrollbars=yes');
}
function sourceSelected(hidden,showPreview,src,desc) {
var hidden = document.getElementById(hidden);
hidden.value = src;
if (showPreview){
showPreviewCall();
}
}
function selectAll(prefix,checked) {
elems = document.getElementsByTagName("input");
for (var key in elems) {
if (elems[key].type == "checkbox" && elems[key].name.substr(0,prefix.length) == prefix) {
elems[key].checked = checked;
}
}
}
function isOneSelected(prefix,enabledOnly) {
if (typeof enabledOnly == "undefined") {
enabledOnly = true;
}
elems = document.getElementsByTagName("input");
for (var key in elems) {
if (elems[key].type == "checkbox" && elems[key].name.substr(0,prefix.length) == prefix) {
if (enabledOnly && elems[key].checked && !elems[key].disabled) return true;
if (!enabledOnly && elems[key].checked) return true;
}
}
return false;
}
// Patch the String object, to make string parsing a little easier in exponent
String.prototype.isValid = function (alpha,numeric,others) {
for (var i = 0; i < this.length; i++) {
if (alpha && this.isAlpha(i)) continue;
if (numeric && this.isNumeric(i)) continue;
var isGood = false;
for (var j = 0; j < others.length; j++) {
if (others[j] == this.charAt(i)) {
isGood = true;
continue;
}
}
if (!isGood) return false;
}
return true;
}
String.prototype.isNumeric = function(index) {
var charcode = this.charCodeAt(index);
return (
(charcode >= 48 && charcode < 48+10)
);
}
String.prototype.isAlpha = function(index) {
var charcode = this.charCodeAt(index);
return (
(charcode >= 65 && charcode < 65+26) ||
(charcode >= 97 && charcode < 97+26)
);
}
String.prototype.trim = function() {
str = this;
while (1) {
if (str.substring(str.length - 1, str.length) != " ") break;
str = str.substr(0,str.length - 1);
}
while (1 && str.length > 0) {
if (str.substring(0,1) != " ") break;
str = str.substr(1,str.length - 1);
}
return str;
}
//My cpanel function
function cpanel(id,url) {
if(document.getElementById(id).style.display == 'inline'){
document.getElementById(id).style.display='none'
document.getElementById('ico_'+id).style.backgroundImage='url('+url+'item_close.gif)'
}else{
document.getElementById(id).style.display='inline'
document.getElementById('ico_'+id).style.backgroundImage='url('+url+'item_open.gif)'
}
}