PageRenderTime 53ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/configs/xpanelform.tpl.php

http://rapidleech36b.googlecode.com/
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

  1. <?php
  2. if (!defined('RAPIDLEECH'))
  3. { require_once("404.php"); exit; }
  4. require_once(CLASS_DIR."other.php");
  5. if($ajax_serverfiles){
  6. ?>
  7. <script type="text/javascript" language="javascript" src="rsajax.js"></script>
  8. <script type="text/javascript" src="mtn/jscolor/jscolor.js"></script>
  9. <?php } ?>
  10. <?php
  11. switch($task)
  12. {
  13. // Advanced Editor Mode
  14. case 'editor':
  15. ?>
  16. <script type="text/javascript">
  17. var dId;
  18. function highlight(field) {
  19. field.focus(); field.select(); }
  20. </script>
  21. <table id="entered" width="100%">
  22. <tr> <td width="100%" valign="top">
  23. <div id='editor' style="display:block;">
  24. <center>
  25. <table border=0 style="width:710px;">
  26. <tbody>
  27. <tr><td>
  28. <?php
  29. $r = file_get_contents($fileconfig);
  30. echo "<div align=left class=a>:: Editor Mode ::</div>";
  31. 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 />";
  32. ?>
  33. <div class="warn_alert"><span class='b'>Warning..!</span> Any misconfiguration on this config file may bring <b class="a">XPanel</b>&nbsp;and <b class="a">RapidLeech</b> not working.<br /><b class="a">You know wot you're doin here, don't you ?!</b></div>
  34. <div align="center" style="padding-top:10px;">
  35. <input type="submit" name="submit" value="Save">&nbsp;&nbsp;&nbsp;
  36. <input type="reset" value="Reset">&nbsp;&nbsp;&nbsp;
  37. <input type="button" onclick="<?php echo 'location.href=\'./'.basename($PHP_SELF).'?mode=\'';?>" value="Back to Xpanel"></div>
  38. </form>
  39. </td></tr>
  40. </tbody>
  41. </table></center>
  42. </div>
  43. </td></tr>
  44. </table></b>
  45. <?php
  46. break; //end -case 'editor':
  47. // View Log Mode
  48. case 'viewlog':
  49. $fnlog = LOG_PHP;
  50. $fnsize = @filesize($fnlog);
  51. $showfnlog = false; // Are you gonna show the filename here??
  52. ?>
  53. <form name="dlog" id="dlog" action="javascript:get('deletelog','logwaiting','logshowresults','');" >
  54. <input type="hidden" id="deletelog" value="<?php print base64_encode($cp_login[0].":".$cp_login[1]);?>">
  55. </form>
  56. <?php if($fnsize>3000){
  57. echo '<input type="button" id="topback" onclick="location.href=\'./'.basename($PHP_SELF).'?mode=\'" value="Back to Xpanel">';}
  58. ?>
  59. &nbsp;&nbsp;<span>Log Filesize<?php echo ($showfnlog ? " <b>[".$fnlog."]</b>&nbsp;":"");?>:&nbsp;<span id="cur_log"><b class="g"><span id="logshowresults" style="float:center;display:;"><?php echo bytesToKbOrMbOrGb($fnsize);?></span>&nbsp;&nbsp;<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>
  60. <div style="padding-top:15px;"><div>
  61. <table id='vlog' width='100%'>
  62. <tr><td><tbody id="vlogtd">
  63. <?php
  64. $fnlog = LOG_PHP;
  65. if(@file_exists($fnlog))
  66. { require_once($fnlog);}else
  67. {echo "<br /><center><b class='r'>$fnlog</b> not found!</center><br />";}
  68. ?>
  69. </div>
  70. </td></tr>
  71. </table>
  72. <div><input type="button" onclick="<?php echo 'location.href=\'./'.basename($PHP_SELF).'?mode=\'';?>" value="Back to Xpanel">
  73. <?php if($fnsize>3000){ ?>
  74. &nbsp;&nbsp;<a href="javascript:;" onclick="scroll(0,0);"><b>TOP</b></a>
  75. <?php } ?>
  76. </div>
  77. <script type="text/javascript">
  78. <?php if($ajax_serverfiles){
  79. ?>
  80. function flushlog(){
  81. d.dlog.submit();
  82. d.getElementById('isilog').style.display = 'none';
  83. if(d.getElementById('topback')!=null){d.getElementById('topback').style.display='none';}
  84. }
  85. <?php } ?>
  86. d.getElementById('resetlog').style.display='';
  87. </script>
  88. <?php
  89. break; // end -case 'viewlog':
  90. //=================================
  91. // XPanel Mode
  92. //=================================
  93. default:
  94. ?>
  95. <form name="poiuy" id="poiuy" action="javascript:get('staccounts','accwaiting','accshowresults','');" >
  96. <input type="hidden" id="staccounts" value="lol">
  97. </form>
  98. <form name="trew" id="trew" action="javascript:get('posttraffic','trafwaiting','trafshowresults','');" >
  99. <input type="hidden" id="posttraffic" value="<?php print base64_encode($cp_login[0].":".$cp_login[1]);?>">
  100. </form>
  101. <form method="post" action="<?php print basename($PHP_SELF);?>">
  102. <table width="100%">
  103. <tbody><tr><td class="xpTitleColoum" width="100">Option</td><td class="xpTitleColoum">Description</td>
  104. </tr>
  105. </tbody>
  106. </table>
  107. <table width="100%">
  108. <tbody>
  109. <!-- ==========================START LOGIN-CONFIG -->
  110. <!-- =============================================-->
  111. <tr><td class="tdacc">
  112. <h1>LOGIN CONFIG</h1></td><td>&nbsp;</td></tr>
  113. <tr><td class="tdlog">
  114. <input name="logincpanel" disabled="disabled" checked="checked" type="checkbox">&nbsp;Login Cpanel</td>
  115. <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 "&nbsp;<small class='b'>Default Login CP Detected (admin:admin)</small>&nbsp;";?></span></div>
  116. <div id="newlogincp" style="display:none;">
  117. user: <input type="text" id="newusercp" name="newusercp">
  118. pass: <input type="password" id="newpascp" name="newpascp">
  119. <input type="button" id="cpcancel" value="Cancel" onclick="doCancel('newusercp','newpascp','waitc','cplHash','cpbtnChange','newlogincp')">
  120. <span id="waitc"></span></div></td>
  121. </tr>
  122. <tr>
  123. <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;} ?>>&nbsp;<label for=login>Login index page</label></td>
  124. <td class="tdacc">
  125. <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>
  126. <div id="loginrl" style="display:none">
  127. user: <input type="text" id="user" name="user">
  128. pass: <input type="password" id="pass" name="pass">
  129. <input type="button" id="chngsvn" onclick="doCancel('user','pass','lipu','rlauthHash','rlbtnChange','loginrl');" value="Cancel">
  130. <span id="lipu"></span></div>
  131. <span id="lip" <?php if(!$logindontdisplay) echo $styledisplay; ?>>RL-Login Authorization Mode is <b class="b">OFF</b></span></td>
  132. </tr>
  133. <!-- ==========================END LOGIN-CONFIG -->
  134. <tr><td colspan="2"><div><hr id="grs1"></div></td></tr>
  135. <!-- ==========================START LIMITATION-CONFIG -->
  136. <!-- ==================================================-->
  137. <tr class="tdacchead" id="trlimit" onclick="trclick(this);">
  138. <td colspan="2" class="tdacc"><h1><span id="nod_trlimit"></span>LIMITATION</h1>
  139. </td></tr>
  140. <tbody id="bd_trlimit" <?php echo (isset($_COOKIE["trlimit"])?($_COOKIE["trlimit"]==1?$styledisplay:''):$styledisplay);?>>
  141. <tr>
  142. <td class="tdacc">
  143. <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>&nbsp;<b>Limit Leeching per IP</b></label></td>
  144. <td class="tdacc">This feature only enable if you have any premium acc in your RL.
  145. </td>
  146. </tr>
  147. <tr>
  148. <td class="tdacc" id="limitip"<?php if($limitipchecked) echo $styledisplay; ?>><div style="padding-left:20px;margin-top: 0px;">
  149. <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']; ?>">&nbsp;<b class="g">Times</b> leeching per IP<br />
  150. <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'];}?>">&nbsp;<b class="g">Hours</b> delay per IP</div>
  151. </td>
  152. <td class="tdacc" id="limitip2" style="display:<?php echo ($limitipchecked?'none':'');?>"><div style="padding-left:20px; margin: -11px;">
  153. <span>How many times users can use your RL per IP</span>
  154. <div style="height:5px;">&nbsp;</div>
  155. <span>How long it will recycle allowable download per IP</span>
  156. </div>
  157. </td>
  158. </tr>
  159. <tr>
  160. <td class="tdacc">
  161. <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>&nbsp;<b>Limit Leeching by IP</b></label></td>
  162. <td class="tdacc">This feature always enable although you don't use <span class="r">Rapidshare.com ACC or Megaupload ACC</b></td>
  163. </td>
  164. <tr>
  165. <td class="tdacc" id="downloadLimitip"<?php if($downloadLimitipchecked) echo $styledisplay; ?>><div style="padding-left:20px;margin-top: 0px;">
  166. <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']; ?>">&nbsp;<b class="g">Times</b> leeching per IP<br />
  167. <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'];}?>">&nbsp;<b class="g">Seconds</b> delay per IP</div>
  168. </td>
  169. <td class="tdacc" id="downloadLimitip2" style="display:<?php echo ($downloadLimitipchecked?'none':'');?>"><div style="padding-left:20px; margin: 1px;">
  170. <span>How many times users can use your RL per IP</span>
  171. <div style="height:5px;">&nbsp;</div>
  172. <span>How long it will limit download per IP</span>
  173. </td>
  174. </tr>
  175. <tr>
  176. <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']; ?>">&nbsp;<b class="g">Link</b> (AuDL)</td>
  177. <td class="tdacc">How many link allow to Auto-download work. set to 0 or blank to disable</td>
  178. </tr><tr>
  179. <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']; ?>">&nbsp;<b class="g">Link</b> (AuUL)</td>
  180. <td class="tdacc">How many file allow to Auto-upload work. set to 0 or blank to disable</td>
  181. </tr>
  182. <tr>
  183. <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">&nbsp;<b>Limit Traffic</b></label></td>
  184. <td class="tdacc">This feature Limit Traffic in your RL
  185. </td>
  186. </tr>
  187. <tr>
  188. <td class="tdacc" id="limittraf"<?php if($limitbytrafficchk) echo $styledisplay; ?>>
  189. <script type="text/javascript" src="misc/date.js"></script>
  190. <link rel="stylesheet" type="text/css" href="misc/date.css" />
  191. <div style="padding-left:20px;">
  192. <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']; ?>">&nbsp;<b class="g">MB</b> Quota Traffic<br />
  193. <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>
  194. <div class="pngDate" onclick="displayDatePicker('YetAnotherDate', false, 'dmy', '/');"><img title="pick date" src="misc/calendar.png" height="15">&nbsp;</div>
  195. <b class="g" title="Day/Month/Year">DMY</b> Expire Due-date
  196. <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']; ?>">&nbsp;<b class="g">day<small>(s)</small></b> Reset Traffic</div>
  197. </div>
  198. </td>
  199. <td class="tdacc" id="limittraf2" style="display:<?php echo ($limitbytrafficchk?'none':'');?>">
  200. <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>
  201. <div style="padding-left:20px; margin-top: 0px;">
  202. <span>Quota Traffic allowed. Currently traffic:&nbsp;<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>&nbsp;&nbsp;<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>
  203. <div style="height:3px;">&nbsp;</div>
  204. <div style="float:left;">The D-Day traffic quota will expired</div><br /><div style="height:3px;">&nbsp;</div>
  205. <div style="float:left;">Auto-Reset traffic. set to 0 or blank to disable.
  206. <?php if($options['day_reset_trafic'] > 0) {
  207. echo "<small class='g'>remain: " . sec2time(timeremain_traffic($options['day_reset_trafic'], $cur_trf[1])) . "</small>";
  208. }
  209. ?>
  210. </div>
  211. <?php if($ajax_serverfiles){
  212. ?>
  213. <script type="text/javascript">function trafst() {document.trew.submit("posttraffic","trafwaiting","trafshowresults",""); }</script>
  214. <?php } ?>
  215. </div></td>
  216. </tr>
  217. <tr>
  218. <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">&nbsp;<b>Limit Authorize by IP</b></label></td>
  219. <td class="tdacc">Limit access to your RL by authorized IP only.</td>
  220. </tr>
  221. <tr>
  222. <td class="tdacc" id="limitauthip"<?php if($limitauthbyip) echo $styledisplay; ?>><div style="padding-left:15px;">
  223. <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 />
  224. <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>
  225. </td>
  226. <td class="tdacc" id="limitauthip2"<?php if($limitauthbyip) echo $styledisplay; ?>><div style="padding-left:15px; margin-top: 0px;">
  227. <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>
  228. <div style="height:5px;">&nbsp;</div>
  229. <span>Banned / Blacklist IP,!. eg. 111.111.111.111, 222.*.*.*, 212.212.212.*</span>
  230. </div></td>
  231. </tr>
  232. <tr>
  233. <?php
  234. $geo_class = CLASS_DIR."geoip.inc.php"; $geo_db = CLASS_DIR."GeoIP.dat"; $msg_CID = "";
  235. if(!file_exists($geo_class) || !file_exists($geo_db)) {
  236. $msg_CID = " <span class='g'><b>{$geo_class}</b> OR <b>{$geo_db}</b> Not Found.</span>";
  237. }
  238. ?>
  239. <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">&nbsp;<b>Limit Authorize by Country ID Area</b></label></td>
  240. <td class="tdacc">Limit access to your RL by Country ID.<?php echo $msg_CID;?></td>
  241. </tr>
  242. <tr>
  243. <td class="tdacc" id="limitautharea"<?php if($limitauthbyarea) echo $styledisplay; ?>><div style="padding-left:15px;">
  244. <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 />
  245. <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>
  246. </td>
  247. <td class="tdacc" id="limitautharea2"<?php if($limitauthbyarea) echo $styledisplay; ?>><div style="padding-left:15px; margin-top: 0px;">
  248. <span>White list Country ID, set blank mean all country is allowed. eg. 'ID', 'MY' // allow only Indonesia And Malaysia</span>
  249. <div style="height:5px;">&nbsp;</div>
  250. <span>Blacklist Country ID, set blank mean no country is banned. eg. 'US' // all country from US being banned.</span>
  251. </div></td>
  252. </tr>
  253. <tr>
  254. <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">&nbsp;<b>Limit by Time</b></label></td>
  255. <td class="tdacc">Limit access your RL by Time.</td>
  256. </tr>
  257. <tr>
  258. <td class="tdacc" id="limittdtime"<?php if($limitedtime) echo $styledisplay; ?>><div style="padding-left:15px;">
  259. <input type="text" size="9" name="workstart" value="<?php if($showpostn){if(!empty($_POST['workstart']))echo $_POST['workstart'];}else echo $options['workstart']; ?>">&nbsp;&nbsp;-&nbsp;
  260. <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>
  261. </td>
  262. <td class="tdacc" id="limittdtime2"<?php if($limitedtime) echo $styledisplay; ?>><div style="padding-left:15px; margin-top: 0px;">
  263. <span>Your RL Start & End to Work. eg. 08:00:00 - 17:00:00</span>
  264. </div></td>
  265. </tr>
  266. <tr>
  267. <td class="tdacc"><div class="spc">&nbsp;</div><div style="padding-left:5px;">
  268. <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'];}?>">&nbsp;<b class="g">Hours</b> auto delete</td>
  269. <td class="tdacc">Auto delete file after leeching. set to 0 or blank to disable</td>
  270. </tr><tr>
  271. <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']; ?>">&nbsp;<b class="g">MB</b> maximum file size</td>
  272. <td class="tdacc">Limit transfering each file by <b class="o">maximum</b> filesize. set to 0 or blank to disable</td>
  273. </tr><tr>
  274. <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']; ?>">&nbsp;<b class="g">MB</b> minimum file size</td>
  275. <td class="tdacc">Limit transfering each file by <b class="o">minimum</b> filesize. set to 0 or blank to disable</td>
  276. </tr><tr>
  277. <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']; ?>">&nbsp;<b class="g">MB</b> storage limit</td>
  278. <td class="tdacc">Limit storage in Server Files. set to 0 or blank to disable</td>
  279. </tr><tr>
  280. <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']; ?>">&nbsp;<b class="g">%</b> CPU load</td>
  281. <td class="tdacc">Limit CPU Server load. set to 0 or blank to disable</td>
  282. </tr>
  283. <tr>
  284. <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']; ?>">&nbsp;Maximum Server Job</td>
  285. <td class="tdacc">Limit Server Job. set to 0 or blank to disable</td>
  286. </tr>
  287. </tbody>
  288. <!-- ==========================END LIMITATION CONFIG -->
  289. <tr><td colspan="2"><div><hr id="grs1"></div></td></tr>
  290. <!-- ==========================START FILES-CONFIG -->
  291. <!-- ==================================================-->
  292. <tr class="tdacchead" id="trfiles" onclick="trclick(this);">
  293. <td class="tdacc"><h1><span id="nod_trfiles"></span>FILES CONFIG</h1></td><td>&nbsp;</td></tr>
  294. <tbody id="bd_trfiles" <?php echo (isset($_COOKIE["trfiles"])?($_COOKIE["trfiles"]==1?$styledisplay:''):$styledisplay);?>>
  295. <tr>
  296. <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>&nbsp;Download Directory is changeable</label></td>
  297. <td class="tdacc">Don't check this to disallow users to change the download directory!</td>
  298. </tr>
  299. <tr>
  300. <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">&nbsp;Download Dir is changeable&nbsp;(audl.php)</label></td>
  301. <td class="tdacc">Don't check this to disallow users to change the download directory in <b>audl.php</b></td>
  302. </tr>
  303. <tr>
  304. <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']); ?>">&nbsp;Download directory</div></td>
  305. <td class="tdacc">This is where the downloaded files are saved</td>
  306. </tr>
  307. <tr>
  308. <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']; ?>">&nbsp;Rename prefix</div></td>
  309. <td class="tdacc">Example: <b class="o">www.mysite.com</b> =&gt; <b class="o">www.mysite.com_</b><b class="g">file_name.rar</b></td>
  310. </tr>
  311. <tr>
  312. <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'];?>">&nbsp;Rename suffix</div></td>
  313. <td class="tdacc">Example: <b class="o">www.mysite.com</b> =&gt; <b class="g">file_name</b><b class="o">_www.mysite.com</b><b class="g">.rar</b></td>
  314. </tr>
  315. <tr>
  316. <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']; ?>">&nbsp;Add filename extension</div></td>
  317. <td class="tdacc">Example: <b class="o">ccpb</b> =&gt; <b class="g">file_name.rar</b><b class="o">.ccpb</b></td>
  318. </tr>
  319. <tr>
  320. <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); ?>">&nbsp;Extension preventive</div></td>
  321. <td class="tdacc">To prevent users to rename the file with forbidden extension (.php, .asp, .cgi, etc)</td>
  322. </tr>
  323. <tr>
  324. <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>&nbsp;Show all files</label></td>
  325. <td class="tdacc">To show all files in the catalog</td>
  326. </tr>
  327. <tr>
  328. <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>&nbsp;Disable Actions files.</label></td>
  329. <td class="tdacc">Disable upload, split, zip, rename, delete, etc.</td>
  330. </tr>
  331. <tr>
  332. <td class="tdacc" id="disalldiv" style="display:<?php echo ($options['disable_action']?'none':'');?>">
  333. <div class="div_left_ndot"><ul>
  334. <li class="ndot">
  335. <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">&nbsp;Disable Upload</label></li>
  336. <li class="ndot">
  337. <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>&nbsp;Disable Ftp</label></li>
  338. <li class="ndot">
  339. <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>&nbsp;Disable Email</label></li>
  340. <li class="ndot">
  341. <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>&nbsp;Disable Mass Submits</label></li>
  342. <li class="ndot">
  343. <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>&nbsp;Disable Split</label></li>
  344. <li class="ndot">
  345. <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>&nbsp;Disable Merge</label></li>
  346. <li class="ndot">
  347. <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>&nbsp;Disable MD5 / Changer</label></li>
  348. <li class="ndot">
  349. <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>&nbsp;Disable Pack</label></li>
  350. <li class="ndot">
  351. <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>&nbsp;Disable Zip</label></li>
  352. <li class="ndot">
  353. <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>&nbsp;Disable UnZip</label></li>
  354. <li class="ndot">
  355. <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>&nbsp;Disable RAR Files</label></li>
  356. <li class="ndot">
  357. <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>&nbsp;Disable UnRAR Files</label></li>
  358. <li class="ndot">
  359. <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>&nbsp;Disable Rename</label></li>
  360. <li class="ndot">
  361. <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>&nbsp;Disable Mass-Rename</label></li>
  362. <li class="ndot">
  363. <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>&nbsp;Disable Delete</label></li>
  364. </div>
  365. </td>
  366. <td class="tdacc" id="dis1" style="display:<?php echo ($options['disable_action']?'none':'');?>">
  367. <div class="div_right_ndot"><ul>
  368. <li>
  369. Disallow users upload files</li>
  370. <li>
  371. Disallow users using FTP</li>
  372. <li>
  373. Disallow users submit email</li>
  374. <li>
  375. Disallow users mass submits</li>
  376. <li>
  377. Disallow users Split files</li>
  378. <li>
  379. Disallow users Merge files</li>
  380. <li>
  381. Disallow users MD5 View/Change</li>
  382. <li>
  383. Disallow users Pack files</li>
  384. <li>
  385. Disallow users Zip files</li>
  386. <li>
  387. Disallow users UnZip files</li>
  388. <li>
  389. Disallow users RAR files</li>
  390. <li>
  391. Disallow users UnRAR files</li>
  392. <li>
  393. Disallow users Rename files</li>
  394. <li>
  395. Disallow users Mass-Rename files</li>
  396. <li>
  397. Disallow users Delete files</li>
  398. </ul>
  399. </div>
  400. </td>
  401. </tr>
  402. <tr>
  403. <td class="tdacc">
  404. <?php
  405. $kolshowall = true;
  406. foreach($options['show_column_sfile'] as $kol => $kolval)
  407. { $kolshowall = $kolshowall && $kolval; }
  408. ?>
  409. <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">&nbsp;Server Files Column. <b>Checked: Show All</b></label></td>
  410. <td class="tdacc">Customized Server Files table column</td>
  411. </tr>
  412. <tr>
  413. <td class="tdacc" id="col_sfile" style="display:<?php echo ($kolshowall?'none':'');?>">
  414. <div class="div_left_ndot"><ul>
  415. <li class="ndot">
  416. <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">&nbsp;Show MD5</label></li>
  417. <li class="ndot">
  418. <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">&nbsp;Show Download_Link</label></li>
  419. <li class="ndot">
  420. <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">&nbsp;Show Comments</label></li>
  421. <li class="ndot">
  422. <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">&nbsp;Show Date</label></li>
  423. <li class="ndot">
  424. <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">&nbsp;Show Age</label></li>
  425. <li class="ndot">
  426. <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">&nbsp;Show IP</label></li>
  427. </div>
  428. </td>
  429. <td class="tdacc" id="col_dis1" style="display:<?php echo ($kolshowall?'none':'');?>">
  430. <div style="padding:0 0 0 10px; margin:-5px 0 -10px 0;"><ul>
  431. <li>
  432. <span>Show MD5 column</span><br/></li>
  433. <li style="padding:5px 0 0 0;">
  434. <span>Show Download_Link column</span><br/></li>
  435. <li style="padding:5px 0 0 0;">
  436. <span>Show Comments column</span><br/></li>
  437. <li style="padding:5px 0 0 0;">
  438. <span>Show Date column</span></li>
  439. <li style="padding:5px 0 0 0;">
  440. <span>Show Age column</span></li>
  441. <li style="padding:5px 0 0 0;">
  442. <span>Show IP column</span></li>
  443. </ul>
  444. </div>
  445. </td>
  446. </tr>
  447. <tr>
  448. <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">&nbsp;Bandwidth saving</label></td>
  449. <td class="tdacc">To save bandwidth, if the file name is exist, then stop leeching</td>
  450. </tr>
  451. <tr>
  452. <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">&nbsp;Show Delete Link (lynx.php)</label></td>
  453. <td class="tdacc">Show Delete-Link in Lynx.php (always disabled if Actions files - Delete is disabled)</td>
  454. </tr>
  455. </tbody>
  456. <!-- ==========================END FILES CONFIG -->
  457. <tr><td colspan="2"><div><hr id="grs1"/></div></td></tr>
  458. <!-- ==========================START VIEW-CONFIG -->
  459. <!-- ==================================================-->
  460. <tr class="tdacchead" id="trview" onclick="trclick(this);">
  461. <td class="tdacc"><h1><span id="nod_trview"></span>VIEW CONFIG</h1></td><td>&nbsp;</td></tr>
  462. <tbody id="bd_trview" <?php echo (isset($_COOKIE["trview"])?($_COOKIE["trview"]==1?$styledisplay:''):$styledisplay);?>>
  463. <tr>
  464. <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">&nbsp;Show Cpanel button</label></td>
  465. <td class="tdacc">Show CPanel button</td>
  466. </tr>
  467. <tr>
  468. <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"'; ?>>&nbsp;Show Plugins list</label></td>
  469. <td class="tdacc">Show Plugins supported</td>
  470. </tr>
  471. <tr>
  472. <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"'; ?>>&nbsp;Show Auto Download</label></td>
  473. <td class="tdacc">Show Auto Download Button <?php echo ($options['forbid_audl']? "<b class='r'>AUDL DISABLED</b>":"");?></td>
  474. </tr>
  475. <tr>
  476. <td class="tdacc" id="audlforbid" style="display:<?php echo ($options['navi_left']["showaudl"]?'none':'');?>">
  477. <div style="padding-left:15px;"><label for="forbid_audl">
  478. <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"'; ?>>&nbsp;*&nbsp;Forbidden to AuDL</label>
  479. </div>
  480. </td>
  481. <td class="tdacc" id="audlforbidket" style="display:<?php echo ($options['navi_left']["showaudl"]?'none':'');?>">Restrict access to Auto Downlaod</td>
  482. </tr>
  483. <tr>
  484. <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"'; ?>>&nbsp;Show Auto Upload</label></td>
  485. <td class="tdacc">Show Auto Upload Button <?php echo ($options['forbid_auul']? "<b class='r'>AUUL DISABLED</b>":"");?></td>
  486. </tr>
  487. <tr>
  488. <td class="tdacc" id="auulforbid" style="display:<?php echo ($options['navi_left']["showauul"]?'none':'');?>">
  489. <div style="padding-left:15px;"><label for="forbid_auul">
  490. <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"'; ?>>&nbsp;*&nbsp;Forbidden to AuUL</label>
  491. </div>
  492. </td>
  493. <td class="tdacc" id="auulforbidket" style="display:<?php echo ($options['navi_left']["showauul"]?'none':'');?>">Restrict access to Auto Upload</td>
  494. </tr>
  495. <tr>
  496. <td class="tdacc">
  497. <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"'; ?>>&nbsp;Show Listed Files</label></td>
  498. <td class="tdacc">
  499. Show Listed Files Button <?php echo ($options['forbid_lynx']? "<b class='r'>LYNX DISABLED</b>":"");?>
  500. </td>
  501. </tr>
  502. <tr>
  503. <td class="tdacc" id="lynxforbid" style="display:<?php echo ($options['navi_left']["showlynx"]?'none':'');?>">
  504. <div style="padding-left:15px;">
  505. <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"'; ?>/>
  506. <label for="forbid_lynx">
  507. &nbsp;*&nbsp;Forbidden to Listed&nbsp;Files
  508. </label>
  509. </div>
  510. </td>
  511. <td class="tdacc" id="lynxforbidket" style="display:<?php echo ($options['navi_left']["showlynx"]?'none':'');?>">
  512. Restrict access to Listed&nbsp;Files
  513. </td>
  514. </tr>
  515. <tr>
  516. <td class="tdacc">
  517. <label for="showmtn">
  518. <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"';}?>>&nbsp; Show Movie Thumbnailer</label></td>
  519. <td class="tdacc"> Show Movie Thumbnailer Button</td>
  520. </tr>
  521. <?if (file_exists('mtn.php'))
  522. {?>
  523. <tr id="video_option" style="display:<?php echo ($options['navi_left']['showmtn']?'':'none')?>;">
  524. <td class="tdacc" colspan="2">
  525. <div style="padding-left: 15px;">
  526. <table>
  527. <tr>
  528. <td class="tdacc" width="100" style="padding-left: 10px;">Columns x Rows :
  529. <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
  530. <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>
  531. </tr>
  532. <tr>
  533. <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> :
  534. <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'];};?>" />
  535. </td>
  536. </tr>
  537. <tr>
  538. <td class="tdacc" style="padding-left: 10px;">Background Color :
  539. <input class="color" name="bgcolor" id="bgcolor" size="5" value="<?php if ($options['mtn_bgcolor'] == null) {echo '000000';} else {echo $options['mtn_bgcolor'];};?>"/>
  540. </td>
  541. </tr>
  542. <tr>
  543. <td class="tdacc" style="padding-left: 10px;">Jpeg Quality :
  544. <select name="mtn_quality">
  545. <option value="80" <?php if ($options['mtn_quality'] == 80) echo 'selected';?>> Low </option>
  546. <option value="90" <?php if ($options['mtn_quality'] == 90) echo 'selected';?>> Normal </option>
  547. <option value="100" <?php if ($options['mtn_quality'] == 100) echo 'selected';?>> Hight </option>
  548. </select></td>
  549. </tr>
  550. <tr>
  551. <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> :
  552. <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'];}?>"/> &nbsp;(set 0 or blank to disable)
  553. </td>
  554. </tr>
  555. <tr>
  556. <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>
  557. </tr>
  558. <tr id="video_info_setting" style="display:<?php echo ($options['mtn_video_option']['enable']?'':'none')?>;">
  559. <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'];};?>"/> &nbsp;<br />
  560. Font : <select name="txtfont">
  561. <?PHP
  562. $exts=array(".ttf");
  563. $ext="";
  564. $fontdir = "mtn/font/";
  565. $fonts = vidlist($fontdir,$exts);
  566. foreach($fonts as $font)
  567. {
  568. echo '<option value="'.$font.'" '.($options['mtn_video_option']['txtfont'] == $font?'selected="true"':'').'>'.str_replace('.ttf','',$font).'</option>';
  569. }
  570. ?>
  571. </select>&nbsp;<br />
  572. 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'];}?>"/>
  573. </td>
  574. </tr>
  575. <tr>
  576. <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>
  577. </tr>
  578. <tr id="tcolor" style="display: <?php echo ($options['mtn_time']['enable']?'yes':'none');?>;">
  579. <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>
  580. </tr>
  581. <tr>
  582. <td colspan="2">
  583. <span id="help_text" style="display:none">Add text above output image.</span>
  584. <span id="help_text1" style="display:none">Gap between each shot.</span>
  585. </td>
  586. </tr>
  587. </table>
  588. </div>
  589. </td>
  590. </tr>
  591. <?}?>
  592. <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">&nbsp;Show Server info</label></td>
  593. <td class="tdacc">Disk space &amp; Time Info</td>
  594. </tr>
  595. <tr>
  596. <td class="tdacc" id="cpu_nfo" style="display:<?php echo ($options['navi_left']["server_info"]? '':'none');?>">
  597. <div style="padding-left:15px;">
  598. <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">&nbsp;Show CPU Usage</label>
  599. </div>
  600. </td>
  601. <td class="tdacc" id="cpu_nfoket" style="display:<?php echo ($options['navi_left']["server_info"]? '':'none');?>">
  602. <div style="padding-left:15px;">Show CPU Usage Info</div>
  603. </td>
  604. </tr>
  605. <tr>
  606. <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">&nbsp;Show Online Visitor</label></td>
  607. <td class="tdacc">Show how many Visitor is Online</td>
  608. </tr>
  609. <tr>
  610. <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>&nbsp;Show premiX acc Status</label></td>
  611. <td class="tdacc">Display (RS) Premix ACC status</td>
  612. </tr>
  613. <tr>
  614. <td class="tdacc" id="ip_list" style="display:<?php echo ($options['premix_status']? '':'none');?>">
  615. <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; ?>">&nbsp;<span>Trusted IP List</span></div>
  616. </td>
  617. <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>
  618. </tr>
  619. </tbody>
  620. <!-- ==========================END VIEW CONFIG -->
  621. <tr><td colspan="2"><div><hr id="grs1"></div></td></tr>
  622. <!-- ==========================START MISC-CONFIG -->
  623. <!-- ==================================================-->
  624. <tr class="tdacchead" id="trmisc" onclick="trclick(this);">
  625. <td class="tdacc"><h1><span id="nod_trmisc"></span>MISC CONFIG</h1></td><td>&nbsp;</td></tr>
  626. <tbody id="bd_trmisc" <?php echo (isset($_COOKIE["trmisc"])?($_COOKIE["trmisc"]==1?$styledisplay:''):$styledisplay);?>>
  627. <tr>
  628. <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>&nbsp;No cache page</

Large files files are truncated, but you can click here to view the full file