Viewing File: /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/themes/default/ampps/remote_theme.php
<?php
//////////////////////////////////////////////////////////////
//===========================================================
// remote_theme.php
//===========================================================
// SOFTACULOUS
// Version : 1.1
// Inspired by the DESIRE to be the BEST OF ALL
// ----------------------------------------------------------
// Started by: Alons
// Date: 10th Jan 2009
// Time: 21:00 hrs
// Site: http://www.softaculous.com/ (SOFTACULOUS)
// ----------------------------------------------------------
// Please Read the Terms of use at http://www.softaculous.com
// ----------------------------------------------------------
//===========================================================
// (c)Softaculous Inc.
//===========================================================
//////////////////////////////////////////////////////////////
if(!defined('SOFTACULOUS')){
die('Hacking Attempt');
}
function remote_theme(){
global $user, $globals, $l, $theme, $softpanel, $iscripts, $deleted, $error;
softheader(__('$0 - Remote Site List', array(APP)));
error_handle($error, '100%');
echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function doConfirm(){
var answer = confirm ("'.__js('Are you sure you want to remove this remote site ?').'")
if (answer)
{
return true;
}
return false;
}
</script>
<center class="sai_tit"><img src="'.$theme['images'].'domains.gif" /> ' . __('Your Remote Sites') . '</center>';
// Was something deleted
if(!empty($deleted)){
echo '<div class="sai_notice"><img src="'.$theme['images'].'notice.gif" /> '.__('The remote website has been deleted from our records').'</div><br /><br />';
}
// Are there no remote websites ?
if(empty($user['remote'])){
echo '<div class="sai_notice"><img src="'.$theme['images'].'notice.gif" /> '.__('There are no remote websites. $0 Add one now$1', array('<a href="'.$globals['ind'].'act=addremote">', '</a>')).'</div><br /><br />';
}else{
echo '<table border="0" cellpadding="8" cellspacing="1" width="95%" class="sai_summaryBlock">
<tr>
<td align="center" class="sai_summaryTitle" width="80">'.__('Type').'</td>
<td align="center" class="sai_summaryTitle">'.__('Domain').'</td>
<td align="center" class="sai_summaryTitle" width="140">'.__('Username').'</td>
<td align="center" class="sai_summaryTitle" width="100">'.__('Options').'</td>
</tr>';
foreach($user['remote'] as $k => $v){
echo '<tr>
<td align="center"><img src="'.$theme['images'].$v['panel'].'.gif" width="32" /></td>
<td><a target="_blank" href="http://'.$v['domain_name'].'"> '.$v['domain_name'].'</a></td>
<td align="center">'.$v['username'].'</td>
<td align="center">
<a href="'.$globals['ind'].'act=editremote&remid='.$k.'" title="'.__('Edit').'"><img src="'.$theme['images'].'edit.gif" /></a>
<a href="'.$globals['ind'].'act=remote&delete='.$k.'" title="'.__('Remove').'" onclick="return doConfirm();"><img src="'.$theme['images'].'remove.gif" /></a>
</td>';
}
echo '</table>
<br />
<br />
<br />
<center><a href="'.$globals['ind'].'act=addremote" class="sai_abut">'.__('Add Remote Website').'</a></center>';
}
softfooter();
}
?>Back to Directory