/configs/xpanelform.tpl.php
PHP | 989 lines | 929 code | 54 blank | 6 comment | 67 complexity | 151134ac3a80e563e381ee4da1199700 MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- <?php
- if (!defined('RAPIDLEECH'))
- { require_once("404.php"); exit; }
- require_once(CLASS_DIR."other.php");
- if($ajax_serverfiles){
- ?>
- <script type="text/javascript" language="javascript" src="rsajax.js"></script>
- <script type="text/javascript" src="mtn/jscolor/jscolor.js"></script>
- <?php } ?>
- <?php
- switch($task)
- {
-
- // Advanced Editor Mode
- case 'editor':
-
- ?>
- <script type="text/javascript">
- var dId;
- function highlight(field) {
- field.focus(); field.select(); }
- </script>
-
- <table id="entered" width="100%">
- <tr> <td width="100%" valign="top">
- <div id='editor' style="display:block;">
- <center>
- <table border=0 style="width:710px;">
- <tbody>
- <tr><td>
- <?php
- $r = file_get_contents($fileconfig);
- echo "<div align=left class=a>:: Editor Mode ::</div>";
- echo "<form action=\"".basename($PHP_SELF)."?mode=editor\" method=POST><textarea class=\"redtxtarea\" style=\"width:100%;font-size:12px;\" name=\"edit_text\" cols=\"122\" rows=\"28\" width=\"100%\">".htmlspecialchars($r)."</textarea><br />";
- ?>
- <div class="warn_alert"><span class='b'>Warning..!</span> Any misconfiguration on this config file may bring <b class="a">XPanel</b> and <b class="a">RapidLeech</b> not working.<br /><b class="a">You know wot you're doin here, don't you ?!</b></div>
- <div align="center" style="padding-top:10px;">
- <input type="submit" name="submit" value="Save">
- <input type="reset" value="Reset">
- <input type="button" onclick="<?php echo 'location.href=\'./'.basename($PHP_SELF).'?mode=\'';?>" value="Back to Xpanel"></div>
- </form>
- </td></tr>
- </tbody>
- </table></center>
- </div>
- </td></tr>
- </table></b>
-
-
- <?php
- break; //end -case 'editor':
- // View Log Mode
- case 'viewlog':
- $fnlog = LOG_PHP;
- $fnsize = @filesize($fnlog);
- $showfnlog = false; // Are you gonna show the filename here??
- ?>
- <form name="dlog" id="dlog" action="javascript:get('deletelog','logwaiting','logshowresults','');" >
- <input type="hidden" id="deletelog" value="<?php print base64_encode($cp_login[0].":".$cp_login[1]);?>">
- </form>
- <?php if($fnsize>3000){
- echo '<input type="button" id="topback" onclick="location.href=\'./'.basename($PHP_SELF).'?mode=\'" value="Back to Xpanel">';}
- ?>
- <span>Log Filesize<?php echo ($showfnlog ? " <b>[".$fnlog."]</b> ":"");?>: <span id="cur_log"><b class="g"><span id="logshowresults" style="float:center;display:;"><?php echo bytesToKbOrMbOrGb($fnsize);?></span> <a href="javascript:;" id="resetlog" onclick="<?php echo ($ajax_serverfiles?'if(confirm(\'This will reset Log-System, proceed?\')){flushlog();};' : 'alert(\'Ajax Disabled\')');?>" style="display:none;"><small>FLUSH LOG-FILE</small></a></b></span></span><div id="logwaiting" style="display:none;"></div>
- <div style="padding-top:15px;"><div>
- <table id='vlog' width='100%'>
- <tr><td><tbody id="vlogtd">
- <?php
- $fnlog = LOG_PHP;
- if(@file_exists($fnlog))
- { require_once($fnlog);}else
- {echo "<br /><center><b class='r'>$fnlog</b> not found!</center><br />";}
- ?>
- </div>
- </td></tr>
- </table>
- <div><input type="button" onclick="<?php echo 'location.href=\'./'.basename($PHP_SELF).'?mode=\'';?>" value="Back to Xpanel">
- <?php if($fnsize>3000){ ?>
- <a href="javascript:;" onclick="scroll(0,0);"><b>TOP</b></a>
- <?php } ?>
- </div>
- <script type="text/javascript">
- <?php if($ajax_serverfiles){
- ?>
- function flushlog(){
- d.dlog.submit();
- d.getElementById('isilog').style.display = 'none';
- if(d.getElementById('topback')!=null){d.getElementById('topback').style.display='none';}
- }
- <?php } ?>
- d.getElementById('resetlog').style.display='';
- </script>
- <?php
- break; // end -case 'viewlog':
- //=================================
- // XPanel Mode
- //=================================
- default:
- ?>
- <form name="poiuy" id="poiuy" action="javascript:get('staccounts','accwaiting','accshowresults','');" >
- <input type="hidden" id="staccounts" value="lol">
- </form>
- <form name="trew" id="trew" action="javascript:get('posttraffic','trafwaiting','trafshowresults','');" >
- <input type="hidden" id="posttraffic" value="<?php print base64_encode($cp_login[0].":".$cp_login[1]);?>">
- </form>
- <form method="post" action="<?php print basename($PHP_SELF);?>">
- <table width="100%">
- <tbody><tr><td class="xpTitleColoum" width="100">Option</td><td class="xpTitleColoum">Description</td>
- </tr>
- </tbody>
- </table>
- <table width="100%">
- <tbody>
- <!-- ==========================START LOGIN-CONFIG -->
- <!-- =============================================-->
- <tr><td class="tdacc">
- <h1>LOGIN CONFIG</h1></td><td> </td></tr>
- <tr><td class="tdlog">
- <input name="logincpanel" disabled="disabled" checked="checked" type="checkbox"> Login Cpanel</td>
- <td class="tdacc"><div id="cpbtnChange" style=""><input type="button" value="Change" onclick="var d=document; d.getElementById('cpbtnChange').style.display='none';d.getElementById('newlogincp').style.display='';d.getElementById('cplHash').value='1';d.getElementById('newusercp').focus();"><span id="isdefcp"><?php if($defaultcp)print " <small class='b'>Default Login CP Detected (admin:admin)</small> ";?></span></div>
- <div id="newlogincp" style="display:none;">
- user: <input type="text" id="newusercp" name="newusercp">
- pass: <input type="password" id="newpascp" name="newpascp">
- <input type="button" id="cpcancel" value="Cancel" onclick="doCancel('newusercp','newpascp','waitc','cplHash','cpbtnChange','newlogincp')">
- <span id="waitc"></span></div></td>
- </tr>
- <tr>
- <td class="tdlog"><input type="checkbox" id="login" name="login" onclick="clk(this,'rlbtnChange','lip',0); document.getElementById('loginrl').style.display='none';"<?php $logindontdisplay=true;if($showpostn){if(isset($_POST['login']) && $_POST['login']=='on'){echo ' checked="checked"';$logindontdisplay=false;}}elseif($options['login']){echo ' checked="checked"';$logindontdisplay=false;} ?>> <label for=login>Login index page</label></td>
- <td class="tdacc">
- <div id="rlbtnChange"<?php if($logindontdisplay) echo $styledisplay; ?>><input type="button" value="Change" id="loginchange" onclick="var d=document; d.getElementById('loginrl').style.display=''; d.getElementById('rlbtnChange').style.display='none';d.getElementById('rlauthHash').value='1';d.getElementById('user').focus();"></div>
- <div id="loginrl" style="display:none">
- user: <input type="text" id="user" name="user">
- pass: <input type="password" id="pass" name="pass">
- <input type="button" id="chngsvn" onclick="doCancel('user','pass','lipu','rlauthHash','rlbtnChange','loginrl');" value="Cancel">
- <span id="lipu"></span></div>
- <span id="lip" <?php if(!$logindontdisplay) echo $styledisplay; ?>>RL-Login Authorization Mode is <b class="b">OFF</b></span></td>
- </tr>
- <!-- ==========================END LOGIN-CONFIG -->
- <tr><td colspan="2"><div><hr id="grs1"></div></td></tr>
- <!-- ==========================START LIMITATION-CONFIG -->
- <!-- ==================================================-->
- <tr class="tdacchead" id="trlimit" onclick="trclick(this);">
- <td colspan="2" class="tdacc"><h1><span id="nod_trlimit"></span>LIMITATION</h1>
- </td></tr>
- <tbody id="bd_trlimit" <?php echo (isset($_COOKIE["trlimit"])?($_COOKIE["trlimit"]==1?$styledisplay:''):$styledisplay);?>>
- <tr>
- <td class="tdacc">
- <input type="checkbox" id=limitbyip name="limitbyip" onclick="var displ=this.checked?'':'none';document.getElementById('limitip').style.display=displ;document.getElementById('limitip2').style.display=displ;"<?php $limitipchecked=true;if($showpostn){if(isset($_POST['limitbyip']) && $_POST['limitbyip']=='on'){echo ' checked="checked"';$limitipchecked=false;}}elseif($options['limitbyip']){echo ' checked="checked"';$limitipchecked=false;} ?>><label for=limitbyip> <b>Limit Leeching per IP</b></label></td>
- <td class="tdacc">This feature only enable if you have any premium acc in your RL.
- </td>
- </tr>
- <tr>
- <td class="tdacc" id="limitip"<?php if($limitipchecked) echo $styledisplay; ?>><div style="padding-left:20px;margin-top: 0px;">
- <input type="text" name="max_free_dl" size="4" maxlength="4" value="<?php if($showpostn){if(!empty($_POST['max_free_dl']))echo $_POST['max_free_dl'];}else echo $options['maximum_free_downloads']; ?>"> <b class="g">Times</b> leeching per IP<br />
- <input type="text" name="delayip" size="4" maxlength="3" value="<?php if($showpostn){if(!empty($_POST['delayip'])){echo $_POST['delayip'];}else{echo $options['delay_per_ip'];}}else{echo $options['delay_per_ip'];}?>"> <b class="g">Hours</b> delay per IP</div>
- </td>
- <td class="tdacc" id="limitip2" style="display:<?php echo ($limitipchecked?'none':'');?>"><div style="padding-left:20px; margin: -11px;">
- <span>How many times users can use your RL per IP</span>
- <div style="height:5px;"> </div>
- <span>How long it will recycle allowable download per IP</span>
- </div>
- </td>
- </tr>
- <tr>
- <td class="tdacc">
- <input type="checkbox" id=downloadLimitbyip name="downloadLimitbyip" onclick="var displ=this.checked?'':'none';document.getElementById('downloadLimitip').style.display=displ;document.getElementById('downloadLimitip2').style.display=displ;"<?php $downloadLimitipchecked=true;if($showpostn){if(isset($_POST['downloadLimitbyip']) && $_POST['downloadLimitbyip']=='on'){echo ' checked="checked"';$downloadLimitipchecked=false;}}elseif($options['downloadLimitbyip']){echo ' checked="checked"';$downloadLimitipchecked=false;} ?>><label for=downloadLimitbyip> <b>Limit Leeching by IP</b></label></td>
- <td class="tdacc">This feature always enable although you don't use <span class="r">Rapidshare.com ACC or Megaupload ACC</b></td>
- </td>
- <tr>
- <td class="tdacc" id="downloadLimitip"<?php if($downloadLimitipchecked) echo $styledisplay; ?>><div style="padding-left:20px;margin-top: 0px;">
- <input type="text" name="dl_limit_max" size="4" maxlength="4" value="<?php if($showpostn){if(!empty($_POST['dl_limit_max']))echo $_POST['dl_limit_max'];}else echo $options['downloadsPerIP']; ?>"> <b class="g">Times</b> leeching per IP<br />
- <input type="text" name="dl_per_ip" size="4" maxlength="6" value="<?php if($showpostn){if(!empty($_POST['dl_per_ip'])){echo $_POST['dl_per_ip'];}else{echo $options['downloadDelayPerIP'];}}else{echo $options['downloadDelayPerIP'];}?>"> <b class="g">Seconds</b> delay per IP</div>
- </td>
- <td class="tdacc" id="downloadLimitip2" style="display:<?php echo ($downloadLimitipchecked?'none':'');?>"><div style="padding-left:20px; margin: 1px;">
- <span>How many times users can use your RL per IP</span>
- <div style="height:5px;"> </div>
- <span>How long it will limit download per IP</span>
- </td>
- </tr>
- <tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="audl" size="5" maxlength="4" value="<?php if($showpostn){if(!empty($_POST['audl']))echo $_POST['audl'];}else echo $options['audl']; ?>"> <b class="g">Link</b> (AuDL)</td>
- <td class="tdacc">How many link allow to Auto-download work. set to 0 or blank to disable</td>
- </tr><tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="auul" size="5" maxlength="4" value="<?php if($showpostn){if(!empty($_POST['auul']))echo $_POST['auul'];}else echo $options['auul']; ?>"> <b class="g">Link</b> (AuUL)</td>
- <td class="tdacc">How many file allow to Auto-upload work. set to 0 or blank to disable</td>
- </tr>
- <tr>
- <td class="tdacc"><input type="checkbox" id="limitbytraffic" name="limitbytraffic" onclick="var displ=this.checked?'':'none';document.getElementById('limittraf').style.display=displ;document.getElementById('limittraf2').style.display=displ;"<?php $limitbytrafficchk=true;if($showpostn){if(isset($_POST['limitbytraffic']) && $_POST['limitbytraffic']=='on'){echo ' checked="checked"';$limitbytrafficchk=false;}}elseif($options['limitbytraffic']){echo ' checked="checked"';$limitbytrafficchk=false;} ?>><label for="limitbytraffic"> <b>Limit Traffic</b></label></td>
- <td class="tdacc">This feature Limit Traffic in your RL
- </td>
- </tr>
- <tr>
- <td class="tdacc" id="limittraf"<?php if($limitbytrafficchk) echo $styledisplay; ?>>
- <script type="text/javascript" src="misc/date.js"></script>
- <link rel="stylesheet" type="text/css" href="misc/date.css" />
- <div style="padding-left:20px;">
- <input type="text" name="max_trafic" size="5" value="<?php if($showpostn){if(!empty($_POST['max_trafic']))echo $_POST['max_trafic'];}else echo $options['max_trafic']; ?>"> <b class="g">MB</b> Quota Traffic<br />
- <div style="float:left;"><input name="YetAnotherDate" type="text" size="10" maxlength="10" value="<?php if($showpostn){if(!empty($_POST['date_trafic'])){echo $_POST['date_trafic'];}else{echo $options['date_trafic'];}}else{echo $options['date_trafic'];}?>"></div>
- <div class="pngDate" onclick="displayDatePicker('YetAnotherDate', false, 'dmy', '/');"><img title="pick date" src="misc/calendar.png" height="15"> </div>
- <b class="g" title="Day/Month/Year">DMY</b> Expire Due-date
- <div></div><div style="float:left;"><input type="text" name="day_reset_trafic" size="5" maxlength="2" value="<?php if($showpostn){if(!empty($_POST['day_reset_trafic']))echo $_POST['day_reset_trafic'];}else echo $options['day_reset_trafic']; ?>"> <b class="g">day<small>(s)</small></b> Reset Traffic</div>
- </div>
- </td>
- <td class="tdacc" id="limittraf2" style="display:<?php echo ($limitbytrafficchk?'none':'');?>">
- <div id="curtrafic" align="center" style="position:absolute;float:left;width:200px;padding-left:270px; margin-top:-10px; display:<?php echo ($options['limitbytraffic']?"":"none;");?>"><div id="trafwaiting" align="left" style="display:none;"></div></div>
- <div style="padding-left:20px; margin-top: 0px;">
- <span>Quota Traffic allowed. Currently traffic: <span id="cur_traffic"><b class="g" style="position:absolute;"><span id="trafshowresults" style="position:float:center;display:;"><?php $cur_trf = get_traffic(TRAFFIC_LST); echo bytesToKbOrMbOrGb($cur_trf[0]);?></span> <a href="javascript:;" onclick="<?php echo ($ajax_serverfiles?'if(confirm(\'This will reset Current Traffic, proceed?\')){trafst();}' : 'alert(\'Ajax Disabled\');');?>;"><small>reset</small></a></b></span></span>
- <div style="height:3px;"> </div>
- <div style="float:left;">The D-Day traffic quota will expired</div><br /><div style="height:3px;"> </div>
- <div style="float:left;">Auto-Reset traffic. set to 0 or blank to disable.
- <?php if($options['day_reset_trafic'] > 0) {
- echo "<small class='g'>remain: " . sec2time(timeremain_traffic($options['day_reset_trafic'], $cur_trf[1])) . "</small>";
- }
- ?>
- </div>
- <?php if($ajax_serverfiles){
- ?>
- <script type="text/javascript">function trafst() {document.trew.submit("posttraffic","trafwaiting","trafshowresults",""); }</script>
- <?php } ?>
- </div></td>
- </tr>
- <tr>
- <td class="tdacc"><input type="checkbox" id="limited_edition" name="limited_edition" onclick="var displ=this.checked?'':'none';document.getElementById('limitauthip').style.display=displ;document.getElementById('limitauthip2').style.display=displ;"<?php $limitauthbyip=true;if($showpostn){if(isset($_POST['limited_edition']) && $_POST['limited_edition']=='on'){echo ' checked="checked"';$limitauthbyip=false;}}elseif($options['limited_edition']){echo ' checked="checked"';$limitauthbyip=false;} ?>><label for="limited_edition"> <b>Limit Authorize by IP</b></label></td>
- <td class="tdacc">Limit access to your RL by authorized IP only.</td>
- </tr>
- <tr>
- <td class="tdacc" id="limitauthip"<?php if($limitauthbyip) echo $styledisplay; ?>><div style="padding-left:15px;">
- <input type="text" name="list_allow_ip" value="<?php if($showpostn){if(!empty($_POST['list_allow_ip'])){echo $_POST['list_allow_ip'];}else{echo (trim($options['list_allow_ip'])!='' ? $options['list_allow_ip']:get_real_ip());}}else{echo (trim($options['list_allow_ip'])!='' ? $options['list_allow_ip']:get_real_ip());}?>"> White List IP<br />
- <input type="text" name="list_baned_ip" value="<?php if($showpostn){if(!empty($_POST['list_baned_ip'])){echo $_POST['list_baned_ip'];}else{echo $options['list_baned_ip'];}}else{echo $options['list_baned_ip'];}?>"> Black Listed IP</div>
- </td>
- <td class="tdacc" id="limitauthip2"<?php if($limitauthbyip) echo $styledisplay; ?>><div style="padding-left:15px; margin-top: 0px;">
- <span>White list IP. eg. <b class="g"><?php echo get_real_ip();?></b>, 111.111.111.111, 255.*.*.*, // <span class="r">never blank this if you set limitation=true</span></span>
- <div style="height:5px;"> </div>
- <span>Banned / Blacklist IP,!. eg. 111.111.111.111, 222.*.*.*, 212.212.212.*</span>
- </div></td>
- </tr>
- <tr>
- <?php
- $geo_class = CLASS_DIR."geoip.inc.php"; $geo_db = CLASS_DIR."GeoIP.dat"; $msg_CID = "";
- if(!file_exists($geo_class) || !file_exists($geo_db)) {
- $msg_CID = " <span class='g'><b>{$geo_class}</b> OR <b>{$geo_db}</b> Not Found.</span>";
- }
- ?>
- <td class="tdacc"><input type="checkbox" id="limited_area" name="limited_area" onclick="var displ=this.checked?'':'none';document.getElementById('limitautharea').style.display=displ;document.getElementById('limitautharea2').style.display=displ;"<?php $limitauthbyarea=true;if($showpostn){if(isset($_POST['limited_area']) && $_POST['limited_area']=='on' && $msg_CID==""){echo ' checked="checked"';$limitauthbyarea=false;}}elseif($options['limited_area'] && $msg_CID==""){echo ' checked="checked"';$limitauthbyarea=false;} echo ($msg_CID!="" ? " disabled='true'":"");?>><label for="limited_area"> <b>Limit Authorize by Country ID Area</b></label></td>
- <td class="tdacc">Limit access to your RL by Country ID.<?php echo $msg_CID;?></td>
- </tr>
- <tr>
- <td class="tdacc" id="limitautharea"<?php if($limitauthbyarea) echo $styledisplay; ?>><div style="padding-left:15px;">
- <input type="text" name="allow_CID" value="<?php if($showpostn){if(!empty($_POST['allow_CID'])){echo $_POST['allow_CID'];}else{echo $options['allow_CID'];}}else{echo $options['allow_CID'];}?>"> White List CID<br />
- <input type="text" name="baned_CID" value="<?php if($showpostn){if(!empty($_POST['baned_CID'])){echo $_POST['baned_CID'];}else{echo $options['baned_CID'];}}else{echo $options['baned_CID'];}?>"> Black CID</div>
- </td>
- <td class="tdacc" id="limitautharea2"<?php if($limitauthbyarea) echo $styledisplay; ?>><div style="padding-left:15px; margin-top: 0px;">
- <span>White list Country ID, set blank mean all country is allowed. eg. 'ID', 'MY' // allow only Indonesia And Malaysia</span>
- <div style="height:5px;"> </div>
- <span>Blacklist Country ID, set blank mean no country is banned. eg. 'US' // all country from US being banned.</span>
- </div></td>
- </tr>
- <tr>
- <td class="tdacc"><input type="checkbox" id="limit_timework" name="limit_timework" onclick="var displ=this.checked?'':'none';document.getElementById('limittdtime').style.display=displ;document.getElementById('limittdtime2').style.display=displ;"<?php $limitedtime=true;if($showpostn){if(isset($_POST['limit_timework']) && $_POST['limit_timework']=='on'){echo ' checked="checked"';$limitedtime=false;}}elseif($options['limit_timework']){echo ' checked="checked"';$limitedtime=false;} ?>><label for="limit_timework"> <b>Limit by Time</b></label></td>
- <td class="tdacc">Limit access your RL by Time.</td>
- </tr>
- <tr>
- <td class="tdacc" id="limittdtime"<?php if($limitedtime) echo $styledisplay; ?>><div style="padding-left:15px;">
- <input type="text" size="9" name="workstart" value="<?php if($showpostn){if(!empty($_POST['workstart']))echo $_POST['workstart'];}else echo $options['workstart']; ?>"> -
- <input type="text" size="9" name="workend" value="<?php if($showpostn){if(!empty($_POST['workend'])){echo $_POST['workend'];}else{echo $options['workend'];}}else{echo $options['workend'];}?>"></div>
- </td>
- <td class="tdacc" id="limittdtime2"<?php if($limitedtime) echo $styledisplay; ?>><div style="padding-left:15px; margin-top: 0px;">
- <span>Your RL Start & End to Work. eg. 08:00:00 - 17:00:00</span>
- </div></td>
- </tr>
- <tr>
- <td class="tdacc"><div class="spc"> </div><div style="padding-left:5px;">
- <input type="text" name="auto_delet" maxlength="5" size="5" value="<?php if($showpostn){if(!empty($_POST['auto_delet']))echo $_POST['auto_delet'];}else{echo $options['auto_del_time'];}?>"> <b class="g">Hours</b> auto delete</td>
- <td class="tdacc">Auto delete file after leeching. set to 0 or blank to disable</td>
- </tr><tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="limitsize" size="5" maxlength="4" value="<?php if($showpostn){if(!empty($_POST['limitsize']))echo $_POST['limitsize'];}else echo $options['limitsize']; ?>"> <b class="g">MB</b> maximum file size</td>
- <td class="tdacc">Limit transfering each file by <b class="o">maximum</b> filesize. set to 0 or blank to disable</td>
- </tr><tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="lowlimitsize" size="5" maxlength="4" value="<?php if($showpostn){if(!empty($_POST['lowlimitsize']))echo $_POST['lowlimitsize'];}else echo $options['lowlimitsize']; ?>"> <b class="g">MB</b> minimum file size</td>
- <td class="tdacc">Limit transfering each file by <b class="o">minimum</b> filesize. set to 0 or blank to disable</td>
- </tr><tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="storage_limit" size="5" maxlength="6" value="<?php if($showpostn){if(!empty($_POST['storage_limit']))echo $_POST['storage_limit'];}else echo $options['storage_limit']; ?>"> <b class="g">MB</b> storage limit</td>
- <td class="tdacc">Limit storage in Server Files. set to 0 or blank to disable</td>
- </tr><tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="cpulimit" size="5" maxlength="3" value="<?php if($showpostn){if(!empty($_POST['cpulimit']))echo $_POST['cpulimit'];}else echo $options['ServerLoadAllowed']; ?>"> <b class="g">%</b> CPU load</td>
- <td class="tdacc">Limit CPU Server load. set to 0 or blank to disable</td>
- </tr>
- <tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="serverjob" size="5" maxlength="3" value="<?php if($showpostn){if(!empty($_POST['serverjob']))echo $_POST['serverjob'];}else echo $options['MaxServerJob']; ?>"> Maximum Server Job</td>
- <td class="tdacc">Limit Server Job. set to 0 or blank to disable</td>
- </tr>
- </tbody>
- <!-- ==========================END LIMITATION CONFIG -->
- <tr><td colspan="2"><div><hr id="grs1"></div></td></tr>
- <!-- ==========================START FILES-CONFIG -->
- <!-- ==================================================-->
- <tr class="tdacchead" id="trfiles" onclick="trclick(this);">
- <td class="tdacc"><h1><span id="nod_trfiles"></span>FILES CONFIG</h1></td><td> </td></tr>
- <tbody id="bd_trfiles" <?php echo (isset($_COOKIE["trfiles"])?($_COOKIE["trfiles"]==1?$styledisplay:''):$styledisplay);?>>
- <tr>
- <td class="tdacc"><input type="checkbox" id=dirchange name="dirchange"<?php if($showpostn){if(isset($_POST['dirchange']) && $_POST['dirchange']=='on')echo ' checked="checked"';}elseif($options['download_dir_is_changeable']) echo ' checked="checked"'; ?>><label for=dirchange> Download Directory is changeable</label></td>
- <td class="tdacc">Don't check this to disallow users to change the download directory!</td>
- </tr>
- <tr>
- <td class="tdacc"><input type="checkbox" id="dirchangeaudl" name="dirchangeaudl"<?php if($showpostn){if(isset($_POST['dirchangeaudl']) && $_POST['dirchangeaudl']=='on')echo ' checked="checked"';}elseif($options['maysaveto']) echo ' checked="checked"'; ?>><label for="dirchangeaudl"> Download Dir is changeable (audl.php)</label></td>
- <td class="tdacc">Don't check this to disallow users to change the download directory in <b>audl.php</b></td>
- </tr>
- <tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="dir" value="<?php if($showpostn){if(!empty($_POST['dir']))echo $_POST['dir'];}elseif($options['download_dir']) echo ($options['download_dir']); ?>"> Download directory</div></td>
- <td class="tdacc">This is where the downloaded files are saved</td>
- </tr>
- <tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="prefix" value="<?php if($showpostn){if(!empty($_POST['prefix']))echo $_POST['prefix'];}elseif(!empty($options['rename_prefix'])) echo $options['rename_prefix']; ?>"> Rename prefix</div></td>
- <td class="tdacc">Example: <b class="o">www.mysite.com</b> => <b class="o">www.mysite.com_</b><b class="g">file_name.rar</b></td>
- </tr>
- <tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="suffix" value="<?php if($showpostn){if(!empty($_POST['suffix']))echo $_POST['suffix'];}elseif(!empty($options['rename_suffix'])) echo $options['rename_suffix'];?>"> Rename suffix</div></td>
- <td class="tdacc">Example: <b class="o">www.mysite.com</b> => <b class="g">file_name</b><b class="o">_www.mysite.com</b><b class="g">.rar</b></td>
- </tr>
- <tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="extension" size="7" maxlength="7" value="<?php if($showpostn){if(!empty($_POST['extension']))echo $_POST['extension'];}elseif(!empty($options['add_ext_5city'])) echo $options['add_ext_5city']; ?>"> Add filename extension</div></td>
- <td class="tdacc">Example: <b class="o">ccpb</b> => <b class="g">file_name.rar</b><b class="o">.ccpb</b></td>
- </tr>
- <tr>
- <td class="tdacc"><div style="padding-left:5px;"><input type="text" name="autorenfiletype" size="2" maxlength="3" value="<?php if($showpostn){if(!empty($_POST['autorenfiletype']))echo $_POST['autorenfiletype'];}elseif(is_string($options['rename_these_filetypes_to'])) echo substr($options['rename_these_filetypes_to'],1); ?>"> Extension preventive</div></td>
- <td class="tdacc">To prevent users to rename the file with forbidden extension (.php, .asp, .cgi, etc)</td>
- </tr>
- <tr>
- <td class="tdacc"><input type="checkbox" id=showallfiles name="showallfiles"<?php if($showpostn){if(isset($_POST['showallfiles']) && $_POST['showallfiles']=='on')echo ' checked="checked"';}elseif($options['show_all']) echo ' checked="checked"'; ?>><label for=showallfiles> Show all files</label></td>
- <td class="tdacc">To show all files in the catalog</td>
- </tr>
- <tr>
- <td class="tdacc"><input type="checkbox" id="disall" name="disall" onclick="var displ=this.checked?'none':'';document.getElementById('disalldiv').style.display=displ;document.getElementById('dis1').style.display=displ;"<?php $disall=false;if($showpostn){if(isset($_POST['disall']) && $_POST['disall']=='on'){echo ' checked="checked"';$disall=true;}}elseif($options['disable_action']){echo ' checked="checked"';$disall=true;} ?>><label for=disall> Disable Actions files.</label></td>
- <td class="tdacc">Disable upload, split, zip, rename, delete, etc.</td>
- </tr>
- <tr>
- <td class="tdacc" id="disalldiv" style="display:<?php echo ($options['disable_action']?'none':'');?>">
- <div class="div_left_ndot"><ul>
- <li class="ndot">
- <input type="checkbox" id="act_upload" name="act_upload"<?php if($showpostn){if(isset($_POST['act_upload']) && $_POST['act_upload']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_upload"]) echo ' checked="checked"'; ?>><label for="act_upload"> Disable Upload</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_ftp" name="act_ftp"<?php if($showpostn){if(isset($_POST['act_ftp']) && $_POST['act_ftp']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_ftp"]) echo ' checked="checked"'; ?>><label for=act_ftp> Disable Ftp</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_mail" name="act_mail"<?php if($showpostn){if(isset($_POST['act_mail']) && $_POST['act_mail']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_mail"]) echo ' checked="checked"'; ?>><label for=act_mail> Disable Email</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_boxes" name="act_boxes"<?php if($showpostn){if(isset($_POST['act_boxes']) && $_POST['act_boxes']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_boxes"]) echo ' checked="checked"'; ?>><label for=act_boxes> Disable Mass Submits</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_split" name="act_split"<?php if($showpostn){if(isset($_POST['act_split']) && $_POST['act_split']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_split"]) echo ' checked="checked"'; ?>><label for=act_split> Disable Split</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_merge" name="act_merge"<?php if($showpostn){if(isset($_POST['act_merge']) && $_POST['act_merge']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_merge"]) echo ' checked="checked"'; ?>><label for=act_merge> Disable Merge</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_md5" name="act_md5"<?php if($showpostn){if(isset($_POST['act_md5']) && $_POST['act_md5']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_md5"]) echo ' checked="checked"'; ?>><label for=act_md5> Disable MD5 / Changer</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_pack" name="act_pack"<?php if($showpostn){if(isset($_POST['act_pack']) && $_POST['act_pack']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_pack"]) echo ' checked="checked"'; ?>><label for=act_pack> Disable Pack</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_zip" name="act_zip"<?php if($showpostn){if(isset($_POST['act_zip']) && $_POST['act_zip']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_zip"]) echo ' checked="checked"'; ?>><label for=act_zip> Disable Zip</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_unzip" name="act_unzip"<?php if($showpostn){if(isset($_POST['act_unzip']) && $_POST['act_unzip']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_unzip"]) echo ' checked="checked"'; ?>><label for=act_unzip> Disable UnZip</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_rar" name="act_rar"<?php if($showpostn){if($_POST['act_rar']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_rar"]) echo ' checked="checked"'; ?>><label for=act_rar> Disable RAR Files</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_unrar" name="act_unrar"<?php if($showpostn){if($_POST['act_unrar']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_unrar"]) echo ' checked="checked"'; ?>><label for=act_unrar> Disable UnRAR Files</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_rename" name="act_rename"<?php if($showpostn){if(isset($_POST['act_rename']) && $_POST['act_rename']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_rename"]) echo ' checked="checked"'; ?>><label for=act_rename> Disable Rename</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_mrename" name="act_mrename"<?php if($showpostn){if(isset($_POST['act_mrename']) && $_POST['act_mrename']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_mrename"]) echo ' checked="checked"'; ?>><label for=act_mrename> Disable Mass-Rename</label></li>
- <li class="ndot">
- <input type="checkbox" id="act_delete" name="act_delete"<?php if($showpostn){if(isset($_POST['act_delete']) && $_POST['act_delete']=='on')echo ' checked="checked"';}elseif($options['disable_to']["act_delete"]) echo ' checked="checked"'; ?>><label for=act_delete> Disable Delete</label></li>
- </div>
- </td>
- <td class="tdacc" id="dis1" style="display:<?php echo ($options['disable_action']?'none':'');?>">
- <div class="div_right_ndot"><ul>
- <li>
- Disallow users upload files</li>
- <li>
- Disallow users using FTP</li>
- <li>
- Disallow users submit email</li>
- <li>
- Disallow users mass submits</li>
- <li>
- Disallow users Split files</li>
- <li>
- Disallow users Merge files</li>
- <li>
- Disallow users MD5 View/Change</li>
- <li>
- Disallow users Pack files</li>
- <li>
- Disallow users Zip files</li>
- <li>
- Disallow users UnZip files</li>
- <li>
- Disallow users RAR files</li>
- <li>
- Disallow users UnRAR files</li>
- <li>
- Disallow users Rename files</li>
- <li>
- Disallow users Mass-Rename files</li>
- <li>
- Disallow users Delete files</li>
- </ul>
- </div>
- </td>
- </tr>
- <tr>
- <td class="tdacc">
- <?php
- $kolshowall = true;
- foreach($options['show_column_sfile'] as $kol => $kolval)
- { $kolshowall = $kolshowall && $kolval; }
- ?>
- <input type="checkbox" id="show_column_sfile" name="show_column_sfile" onclick="var displ=this.checked?'none':'';document.getElementById('col_sfile').style.display=displ; document.getElementById('col_dis1').style.display=displ;"<?php if(isset($_POST['show_column_sfile']) && $_POST['show_column_sfile']=='on'){echo ' checked="checked"';$kolshowall=true;}elseif($kolshowall){echo ' checked="checked"';} ?>><label for="show_column_sfile"> Server Files Column. <b>Checked: Show All</b></label></td>
- <td class="tdacc">Customized Server Files table column</td>
- </tr>
- <tr>
- <td class="tdacc" id="col_sfile" style="display:<?php echo ($kolshowall?'none':'');?>">
- <div class="div_left_ndot"><ul>
- <li class="ndot">
- <input type="checkbox" id="md5" name="md5"<?php if($showpostn){if(isset($_POST['md5']) && $_POST['md5']=='on')echo ' checked="checked"';}elseif($options['show_column_sfile']["md5"]) echo ' checked="checked"'; ?>><label for="md5"> Show MD5</label></li>
- <li class="ndot">
- <input type="checkbox" id="downloadlink" name="downloadlink"<?php if($showpostn){if(isset($_POST['downloadlink']) && $_POST['downloadlink']=='on')echo ' checked="checked"';}elseif($options['show_column_sfile']["downloadlink"]) echo ' checked="checked"'; ?>><label for="downloadlink"> Show Download_Link</label></li>
- <li class="ndot">
- <input type="checkbox" id="comments" name="comments"<?php if($showpostn){if(isset($_POST['comments']) && $_POST['comments']=='on')echo ' checked="checked"';}elseif($options['show_column_sfile']["comments"]) echo ' checked="checked"'; ?>><label for="comments"> Show Comments</label></li>
- <li class="ndot">
- <input type="checkbox" id="date" name="date"<?php if($showpostn){if(isset($_POST['date']) && $_POST['date']=='on')echo ' checked="checked"';}elseif($options['show_column_sfile']["date"]) echo ' checked="checked"'; ?>><label for="date"> Show Date</label></li>
- <li class="ndot">
- <input type="checkbox" id="age" name="age"<?php if($showpostn){if(isset($_POST['age']) && $_POST['age']=='on')echo ' checked="checked"';}elseif($options['show_column_sfile']["age"]) echo ' checked="checked"'; ?>><label for="age"> Show Age</label></li>
- <li class="ndot">
- <input type="checkbox" id="ip" name="ip"<?php if($showpostn){if(isset($_POST['ip']) && $_POST['ip']=='on')echo ' checked="checked"';}elseif($options['show_column_sfile']["ip"]) echo ' checked="checked"'; ?>><label for="ip"> Show IP</label></li>
- </div>
- </td>
- <td class="tdacc" id="col_dis1" style="display:<?php echo ($kolshowall?'none':'');?>">
- <div style="padding:0 0 0 10px; margin:-5px 0 -10px 0;"><ul>
- <li>
- <span>Show MD5 column</span><br/></li>
- <li style="padding:5px 0 0 0;">
- <span>Show Download_Link column</span><br/></li>
- <li style="padding:5px 0 0 0;">
- <span>Show Comments column</span><br/></li>
- <li style="padding:5px 0 0 0;">
- <span>Show Date column</span></li>
- <li style="padding:5px 0 0 0;">
- <span>Show Age column</span></li>
- <li style="padding:5px 0 0 0;">
- <span>Show IP column</span></li>
- </ul>
- </div>
- </td>
- </tr>
- <tr>
- <td class="tdacc"><input type="checkbox" id="bandwidthsave" name="bandwidthsave"<?php if($showpostn){if(isset($_POST['bandwidthsave']) && $_POST['bandwidthsave']=='on')echo ' checked="checked"';}elseif($options['bw_save']) echo ' checked="checked"'; ?>><label for="bandwidthsave"> Bandwidth saving</label></td>
- <td class="tdacc">To save bandwidth, if the file name is exist, then stop leeching</td>
- </tr>
- <tr>
- <td class="tdacc"><input type="checkbox" id="deletelink_in_lynx" name="deletelink_in_lynx"<?php if($showpostn){if(isset($_POST['deletelink_in_lynx']) && $_POST['deletelink_in_lynx']=='on')echo ' checked="checked"';}elseif($options['deletelink_in_lynx']) echo ' checked="checked"'; ?>><label for="deletelink_in_lynx"> Show Delete Link (lynx.php)</label></td>
- <td class="tdacc">Show Delete-Link in Lynx.php (always disabled if Actions files - Delete is disabled)</td>
- </tr>
- </tbody>
- <!-- ==========================END FILES CONFIG -->
- <tr><td colspan="2"><div><hr id="grs1"/></div></td></tr>
- <!-- ==========================START VIEW-CONFIG -->
- <!-- ==================================================-->
- <tr class="tdacchead" id="trview" onclick="trclick(this);">
- <td class="tdacc"><h1><span id="nod_trview"></span>VIEW CONFIG</h1></td><td> </td></tr>
- <tbody id="bd_trview" <?php echo (isset($_COOKIE["trview"])?($_COOKIE["trview"]==1?$styledisplay:''):$styledisplay);?>>
- <tr>
- <td class="tdacc"><input type="checkbox" id="showcpanel" name="showcpanel"<?php if($showpostn){if(isset($_POST['showcpanel']) && $_POST['showcpanel']=='on')echo ' checked="checked"';}elseif($options['navi_left']["showcpanel"]) echo ' checked="checked"'; ?>><label for="showcpanel"> Show Cpanel button</label></td>
- <td class="tdacc">Show CPanel button</td>
- </tr>
- <tr>
- <td class="tdacc"><label for="showplugins"><input type="checkbox" id="showplugins" name="showplugins"<?php if($showpostn){if(isset($_POST['showplugins']) && $_POST['showplugins']=='on')echo ' checked="checked"';}elseif($options['navi_left']["showplugins"]) echo ' checked="checked"'; ?>> Show Plugins list</label></td>
- <td class="tdacc">Show Plugins supported</td>
- </tr>
- <tr>
- <td class="tdacc"><label for="showaudl"><input type="checkbox" id="showaudl" name="showaudl" onclick="var displ=this.checked?'none':'';d.getElementById('audlforbid').style.display=displ;d.getElementById('audlforbidket').style.display=displ;" <?php if($showpostn){if(isset($_POST['showaudl']) && $_POST['showaudl']=='on')echo ' checked="checked"';}elseif($options['navi_left']["showaudl"]) echo ' checked="checked"'; ?>> Show Auto Download</label></td>
- <td class="tdacc">Show Auto Download Button <?php echo ($options['forbid_audl']? "<b class='r'>AUDL DISABLED</b>":"");?></td>
- </tr>
- <tr>
- <td class="tdacc" id="audlforbid" style="display:<?php echo ($options['navi_left']["showaudl"]?'none':'');?>">
- <div style="padding-left:15px;"><label for="forbid_audl">
- <input type="checkbox" id="forbid_audl" name="forbid_audl"<?php if($showpostn){if(isset($_POST['forbid_audl']) && $_POST['forbid_audl']=='on')echo ' checked="checked"';}elseif($options['forbid_audl']) echo ' checked="checked"'; ?>> * Forbidden to AuDL</label>
- </div>
- </td>
- <td class="tdacc" id="audlforbidket" style="display:<?php echo ($options['navi_left']["showaudl"]?'none':'');?>">Restrict access to Auto Downlaod</td>
- </tr>
- <tr>
- <td class="tdacc"><label for="showauul"><input type="checkbox" id="showauul" name="showauul" onclick="var displ=this.checked?'none':'';d.getElementById('auulforbid').style.display=displ;d.getElementById('auulforbidket').style.display=displ;"<?php if($showpostn){if(isset($_POST['showauul']) && $_POST['showauul']=='on')echo ' checked="checked"';}elseif($options['navi_left']["showauul"]) echo ' checked="checked"'; ?>> Show Auto Upload</label></td>
- <td class="tdacc">Show Auto Upload Button <?php echo ($options['forbid_auul']? "<b class='r'>AUUL DISABLED</b>":"");?></td>
- </tr>
- <tr>
- <td class="tdacc" id="auulforbid" style="display:<?php echo ($options['navi_left']["showauul"]?'none':'');?>">
- <div style="padding-left:15px;"><label for="forbid_auul">
- <input type="checkbox" id="forbid_auul" name="forbid_auul"<?php if($showpostn){if(isset($_POST['forbid_auul']) && $_POST['forbid_auul']=='on')echo ' checked="checked"';}elseif($options['forbid_auul']) echo ' checked="checked"'; ?>> * Forbidden to AuUL</label>
- </div>
- </td>
- <td class="tdacc" id="auulforbidket" style="display:<?php echo ($options['navi_left']["showauul"]?'none':'');?>">Restrict access to Auto Upload</td>
- </tr>
- <tr>
- <td class="tdacc">
- <label for="showlynx"><input type="checkbox" id="showlynx" name="showlynx" onclick="var displ=this.checked?'none':'';d.getElementById('lynxforbid').style.display=displ;d.getElementById('lynxforbidket').style.display=displ;"<?php if($showpostn){if(isset($_POST['showlynx']) && $_POST['showlynx']=='on')echo ' checked="checked"';}elseif($options['navi_left']["showlynx"]) echo ' checked="checked"'; ?>> Show Listed Files</label></td>
- <td class="tdacc">
- Show Listed Files Button <?php echo ($options['forbid_lynx']? "<b class='r'>LYNX DISABLED</b>":"");?>
- </td>
- </tr>
- <tr>
- <td class="tdacc" id="lynxforbid" style="display:<?php echo ($options['navi_left']["showlynx"]?'none':'');?>">
- <div style="padding-left:15px;">
- <input type="checkbox" id="forbid_lynx" name="forbid_lynx"<?php if($showpostn){if(isset($_POST['forbid_lynx']) && $_POST['forbid_lynx']=='on')echo ' checked="checked"';}elseif($options['forbid_lynx']) echo ' checked="checked"'; ?>/>
- <label for="forbid_lynx">
- * Forbidden to Listed Files
- </label>
- </div>
- </td>
- <td class="tdacc" id="lynxforbidket" style="display:<?php echo ($options['navi_left']["showlynx"]?'none':'');?>">
- Restrict access to Listed Files
- </td>
- </tr>
- <tr>
- <td class="tdacc">
- <label for="showmtn">
- <input type="checkbox" id="showmtn" name="showmtn" onclick="var displ=this.checked?'':'none';d.getElementById('video_option').style.display=displ;" <?php if($showpostn) {if (isset($_POST['showmtn']) && $_POST['showmtn'] == 'on')echo 'checked';} elseif ($options['navi_left']['showmtn']){echo ' checked="checked"';}?>> Show Movie Thumbnailer</label></td>
- <td class="tdacc"> Show Movie Thumbnailer Button</td>
- </tr>
- <?if (file_exists('mtn.php'))
- {?>
- <tr id="video_option" style="display:<?php echo ($options['navi_left']['showmtn']?'':'none')?>;">
- <td class="tdacc" colspan="2">
- <div style="padding-left: 15px;">
- <table>
- <tr>
- <td class="tdacc" width="100" style="padding-left: 10px;">Columns x Rows :
- <input type="text" size="1" id="mtn_cs" name="mtn_cs" value="<?php if ($showpostn){if(!empty($_POST['mtn_cs']))echo $_POST['mtn_cs'];}else {echo $options['mtn_col_row']['mtn_colums'];};?>">x
- <input type="text" size="1" id="mtn_rs" name="mtn_rs" value="<?php if ($showpostn){if(!empty($_POST['mtn_rs']))echo $_POST['mtn_rs'];}else {echo $options['mtn_col_row']['mtn_rows'];};?>"></td>
- </tr>
- <tr>
- <td class="tdacc" style="padding-left: 10px;">Text <span class="nav_text" onmouseover="document.getElementById('help_text').style.display='block'" onmouseout="document.getElementById('help_text').style.display='none'" style="cursor:help"> [?]</span> :
- <input type="text" size="25" id="mtn_text" name="mtn_text" value="<?php if ($showpostn){if(!empty($_POST['mtn_text']))echo $_POST['mtn_text'];}else {echo $options['mtn_text'];};?>" />
- </td>
- </tr>
- <tr>
- <td class="tdacc" style="padding-left: 10px;">Background Color :
- <input class="color" name="bgcolor" id="bgcolor" size="5" value="<?php if ($options['mtn_bgcolor'] == null) {echo '000000';} else {echo $options['mtn_bgcolor'];};?>"/>
- </td>
- </tr>
- <tr>
- <td class="tdacc" style="padding-left: 10px;">Jpeg Quality :
- <select name="mtn_quality">
- <option value="80" <?php if ($options['mtn_quality'] == 80) echo 'selected';?>> Low </option>
- <option value="90" <?php if ($options['mtn_quality'] == 90) echo 'selected';?>> Normal </option>
- <option value="100" <?php if ($options['mtn_quality'] == 100) echo 'selected';?>> Hight </option>
- </select></td>
- </tr>
- <tr>
- <td class="tdacc" style="padding-left: 10px;">Edge <span class="nav_text" onmouseover="document.getElementById('help_text1').style.display='block'" onmouseout="document.getElementById('help_text1').style.display='none'" style="cursor:help"> [?]</span> :
- <input type="text" size="1" id="mtn_edge" name="mtn_edge" value="<?php if ($showpostn){if (!empty($_POST['mtn_edge']))echo $_POST['mtn_edge'];} else {echo $options['mtn_edge'];}?>"/> (set 0 or blank to disable)
- </td>
- </tr>
- <tr>
- <td class="tdacc" style="width: 240px;"><input type="checkbox" name="video_option" id="video_option" onclick="var displ=this.checked?'':'none';d.getElementById('video_info_setting').style.display=displ;" <?php if ($showpostn) {if (isset($_POST['video_info']) && $_POST['video_info'] = 'on')echo 'checked';} elseif ($options['mtn_video_option']['enable']){echo 'checked';}?>/>Video Info</td>
- </tr>
- <tr id="video_info_setting" style="display:<?php echo ($options['mtn_video_option']['enable']?'':'none')?>;">
- <td style="padding-left: 30px;" class="tdacc">Color : <input class="color" id="txtcolor" name="txtcolor" size="4" value="<?php if ($showpostn) {if (!empty($_POST['txtcolor']))echo $_POST['txtcolor'];} else {echo $options['mtn_video_option']['txtcolor'];};?>"/> <br />
- Font : <select name="txtfont">
- <?PHP
- $exts=array(".ttf");
- $ext="";
- $fontdir = "mtn/font/";
- $fonts = vidlist($fontdir,$exts);
- foreach($fonts as $font)
- {
- echo '<option value="'.$font.'" '.($options['mtn_video_option']['txtfont'] == $font?'selected="true"':'').'>'.str_replace('.ttf','',$font).'</option>';
- }
- ?>
- </select> <br />
- Size : <input type="text" size="1" id="txtsize" name="txtsize" value="<?php if ($showpostn){if (!empty($_POST['txtsize']))echo $_POST['txtsize'];}else {echo $options['mtn_video_option']['txtsize'];}?>"/>
- </td>
- </tr>
- <tr>
- <td class="tdacc"><input type="checkbox" id="mtn_time" name="mtn_time" onclick="var displ=this.checked?'':'none';d.getElementById('tcolor').style.display=displ;" <?php if($options['mtn_time']['enable'] == true){echo 'checked';}?>/> Time</td>
- </tr>
- <tr id="tcolor" style="display: <?php echo ($options['mtn_time']['enable']?'yes':'none');?>;">
- <td class="tdacc" style="padding-left: 30px;">Color : <input class="color" id="tcolor" name="tcolor" size="5" value="<?php if ($showpostn) {if (!empty($_POST['tcolor']))echo $_POST['tcolor'];} else {echo $options['mtn_time']['tcolor'];};?>"/></td>
- </tr>
- <tr>
- <td colspan="2">
- <span id="help_text" style="display:none">Add text above output image.</span>
- <span id="help_text1" style="display:none">Gap between each shot.</span>
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- <?}?>
- <tr><td class="tdacc"><input type="checkbox" id="server_info" name="server_info" onclick="var displ=this.checked?'':'none';document.getElementById('cpu_nfo').style.display=displ;document.getElementById('cpu_nfoket').style.display=displ;"<?php if($showpostn){if(isset($_POST['server_info']) && $_POST['server_info']=='on')echo ' checked="checked"';}elseif($options['navi_left']["server_info"]) echo ' checked="checked"'; ?>><label for="server_info"> Show Server info</label></td>
- <td class="tdacc">Disk space & Time Info</td>
- </tr>
- <tr>
- <td class="tdacc" id="cpu_nfo" style="display:<?php echo ($options['navi_left']["server_info"]? '':'none');?>">
- <div style="padding-left:15px;">
- <input type="checkbox" id="cpuUsageNFO" name="cpuUsageNFO"<?php if($showpostn){if(isset($_POST['cpuUsageNFO']) && $_POST['cpuUsageNFO']=='on')echo ' checked="checked"';}elseif($options['cpuUsageNFO']) echo ' checked="checked"'; ?>><label for="cpuUsageNFO"> Show CPU Usage</label>
- </div>
- </td>
- <td class="tdacc" id="cpu_nfoket" style="display:<?php echo ($options['navi_left']["server_info"]? '':'none');?>">
- <div style="padding-left:15px;">Show CPU Usage Info</div>
- </td>
- </tr>
- <tr>
- <td class="tdacc"><input type="checkbox" id="onlinevisit" name="onlinevisit"<?php if($showpostn){if(isset($_POST['onlinevisit']) && $_POST['onlinevisit']=='on')echo ' checked="checked"';}elseif($options['OnlineVisitor']) echo ' checked="checked"'; ?>><label for="onlinevisit"> Show Online Visitor</label></td>
- <td class="tdacc">Show how many Visitor is Online</td>
- </tr>
- <tr>
- <td class="tdacc"><input type="checkbox" id=showpremixstatus name="showpremixstatus" onclick="var displ=this.checked?'':'none';document.getElementById('ip_list').style.display=displ;document.getElementById('ip_list_ket').style.display=displ;"<?php $shpremixst=true; if($showpostn){if(isset($_POST['showpremixstatus']) && $_POST['showpremixstatus']=='on')echo ' checked="checked"';$shpremixst=false;}elseif($options['premix_status']) echo ' checked="checked"';$shpremixst=false; ?>><label for=showpremixstatus> Show premiX acc Status</label></td>
- <td class="tdacc">Display (RS) Premix ACC status</td>
- </tr>
- <tr>
- <td class="tdacc" id="ip_list" style="display:<?php echo ($options['premix_status']? '':'none');?>">
- <div style="padding-left:20px;" class="float"><input type="text" name="ip_list" value="<?php if($showpostn){if(!empty($_POST['ip_list']))echo $_POST['ip_list'];}else echo $cain_ip; ?>"> <span>Trusted IP List</span></div>
- </td>
- <td class="tdacc" id="ip_list_ket" style="display:<?php echo ($options['premix_status']? '':'none');?>"><div style="padding-left:10px;">Trusted IP, can view detil premix acc status. eg: 192.168.0.1, <b class="g"><?php echo get_real_ip();?></b></div></td>
- </tr>
- </tbody>
- <!-- ==========================END VIEW CONFIG -->
- <tr><td colspan="2"><div><hr id="grs1"></div></td></tr>
- <!-- ==========================START MISC-CONFIG -->
- <!-- ==================================================-->
- <tr class="tdacchead" id="trmisc" onclick="trclick(this);">
- <td class="tdacc"><h1><span id="nod_trmisc"></span>MISC CONFIG</h1></td><td> </td></tr>
- <tbody id="bd_trmisc" <?php echo (isset($_COOKIE["trmisc"])?($_COOKIE["trmisc"]==1?$styledisplay:''):$styledisplay);?>>
- <tr>
- <td class="tdacc"><input type="checkbox" id=nocache name="nocache"<?php if($showpostn){if(isset($_POST['nocache']) && $_POST['nocache']=='on')echo ' checked="checked"';}elseif($options['no_cache']) echo ' checked="checked"'; ?>><label for=nocache> No cache page</…
Large files files are truncated, but you can click here to view the full file