function changeImgSrc(devName, imgName)
{
obj = getObject(devName);
if (obj) {
obj.src = imgName;
}
else {
return false;
}
}
function styleColorValue(devName, Color)
{
obj = getObject(devName);
if (obj) {
obj.style.color = Color;
}
else {
return false;
}
}
function styleFontWeightValue(devName, Style)
{
ojb = getObject(devName);
if (obj) {
obj.style.fontWeight = Style;
}
else {
return false;
}
}
function frameRedirect(frameName, URI)
{
obj = getObject(frameName);
if (obj) {
obj.src = URI;
}
else {
return false;
}
}
function metaRedirect(cpmode, URI)
{
if (cpmode == 'cpanel') {
if (top.mainFrame) {
top.mainFrame.location.href= URI;
top.commander.document.location.href='/scripts/command';
}
else if (top.document) {
top.document.location.href= URI;
}
else {
document.location.href= URI;
}
}
}
function innerValue(devName, Msg)
{
obj = getObject(devName);
if (obj) {
obj.innerHTML = Msg;
var date = new Date()
var year = date.getYear()
var month = date.getMonth()
var day = date.getDate()
var hour = date.getHours()
var minute = date.getMinutes()
var second = date.getSeconds()
var months = new Array("", "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC")
var monthname = months[month]
if (hour > 12) {
hour = hour - 12
}
if (minute < 10) {
minute = "0" + minute
}
if (second < 10) {
second = "0" + second
}
document.title = "<?php echo(htmlspecialchars(urldecode($_GET['installtitle'])));?> : " + monthname + " " + day + ", " + year + " - " + hour + ":" + minute + ":" + second
}
else {
return false;
}
}
function getObject(objName)
{
if (document.getElementById && document.getElementById(objName)) {
return document.getElementById(objName);
}
else if (document.all && document.all(objName)) {
return document.all(objName);
}
<?php
$parent = 'parent.';
for ($i = 0; $i < 10; $i++) {
?>
else if (<?php echo($parent); ?>document.getElementById && <?php echo($parent); ?>document.getElementById(objName)) {
return <?php echo($parent); ?>document.getElementById(objName);
}
else if (<?php echo($parent); ?>document.all && <?php echo($parent); ?>document.all(objName)) {
return <?php echo($parent); ?>document.all(objName);
}
<?php
$parent .= 'parent.';
}
?>
else {
document.write('Unknown ' + objName);
}
}
function rvdisplay_box(rvsEvent,textHead,textBody)
{
var parentTarget = findParent();
if (parentTarget == false) {
return false;
}
if (textHead == '--') {
textHead =='';
}else if(textHead =='') {
}
if (rvsEvent == 'show') {
text = eval(parentTarget + 'open_quickpopupbox(textHead,textBody);');
} else if (rvsEvent == 'close'){
text = eval(parentTarget+ 'close_quickpopupbox();');
} else if (rvsEvent == 'write'){
text = eval(parentTarget + 'write_quickpopupbox(textHead,textBody,0);');
} else if (rvsEvent == 'loading') {
text = eval(parentTarget + 'write_quickpopupbox(textHead,textBody,1);');
//setLoading = loading.style.display = 'inline'
}
}
function findParent()
{
var objName ='rvsMainWindows';
if (document.getElementById && document.getElementById(objName)) {
return '';
}
else if (document.all && document.all(objName)) {
return '';
}
<?php
$parent = 'parent.';
for ($i = 0; $i < 10; $i++) {
?>
else if (<?php echo($parent); ?>document.getElementById && <?php echo($parent); ?>document.getElementById(objName)) {
return '<?php echo($parent); ?>';
}
else if (<?php echo($parent); ?>document.all && <?php echo($parent); ?>document.all(objName)) {
return '<?php echo($parent); ?>';
}
<?php
$parent .= 'parent.';
}
?>
else {
return false;
}
}
Copyright 2K16 - 2K18 Indonesian Hacker Rulez