示例#1
0
     // why we need to post empty premium account value?
     // Why we should clean up this POST ? i dunno.
     for ($i = 0; $i < count($ar_pre_upass_acc); $i++) {
         $_POST[$ar_pre_upass_acc[$i] . '_premix'] = '';
     }
     foreach ($ar_pre_cookie_acc as $k => $cookie) {
         $_POST[$cookie . '_hashpremix'] = '';
     }
     for ($i = 0; $i < count($ar_pre_key_acc); $i++) {
         $_POST[$ar_pre_key_acc[$i] . '_keypremix'] = '';
     }
 }
 // If Upload Acc checked
 if (isset($_POST['useulcc']) && $_POST['useulcc'] == 'on') {
     foreach ($ar_up_acc as $k => $v) {
         fieldfilter($v . "_upload", 'user_' . $v . '_up', 'pass_' . $v . '_up', $badpetik, "acc_UL");
     }
     unset($v);
 }
 function fillField_premium($_var, $field, $flag)
 {
     $buftxt = '';
     foreach ($field as $key => $accsets) {
         $buftxt .= (isset($_POST[$key]) && $_POST[$key] == 'on' ? $flag : '//') . "\${$_var}[\"{$accsets[0]}\"] = array(" . "'user' => '" . stripslashes(trim($_POST[$accsets[1]])) . "', " . "'pass' => '" . stripslashes(trim($_POST[$accsets[2]])) . "');\r\n";
     }
     return $buftxt;
 }
 //===================
 //==========================
 // Build template accounts.php
 $_account = "<?php\nif (!defined('RAPIDLEECH'))\n  {require_once(\"index.html\");exit;}\n\n";
示例#2
0
 // If Upload Acc checked
 if (isset($_POST['useulcc']) && $_POST['useulcc'] == 'on') {
     fieldfilter($ar_chkbox_up_acc[0], 'usrmf_up', 'passmf_up', $badpetik, "acc_UL");
     fieldfilter($ar_chkbox_up_acc[1], 'usrrs_com_coll_up', 'passrs_com_coll_up', $badpetik, "acc_UL");
     fieldfilter($ar_chkbox_up_acc[2], 'usrrs_com_pre_up', 'passusrrs_com_pre_up', $badpetik, "acc_UL");
     fieldfilter($ar_chkbox_up_acc[3], 'usrmu_pre_up', 'passmu_pre_up', $badpetik, "acc_UL");
     fieldfilter($ar_chkbox_up_acc[4], 'usrhf_com_up', 'passhf_com_up', $badpetik, "acc_UL");
     fieldfilter($ar_chkbox_up_acc[5], 'usreasysh_mem_up', 'passeasysh_mem_up', $badpetik, "acc_UL");
     fieldfilter($ar_chkbox_up_acc[6], 'usrdeposit_up_up', 'passdeposit_up_up', $badpetik, "acc_UL");
     fieldfilter($ar_chkbox_up_acc[7], 'usruploading_up_up', 'passuploading_up_up', $badpetik, "acc_UL");
 }
 singlefilter('muhash_premix', 'muhashcookie', '', $badpetik);
 singlefilter('hfhash_premix', 'hfhashcookie', '', $badpetik);
 singlefilter('rshash_premix', 'rshashcookie', '', $badpetik);
 singlefilter('imghack_premix', 'usrimghk', 'passimghk', $badpetik);
 $rnfltp = empty($_POST['autorenfiletype']) ? '' : fieldfilter('', 'autorenfiletype', '', $badchr);
 /*
 //Check Numeric Field, if invalid or blank, give its default value.
   >> filterNumericFld($postname, $title, $defaultval) {}
 */
 $_POST['max_free_dl'] = filterNumericFld('max_free_dl', 'Leeching per ip', 5);
 $_POST['auto_delet'] = filterNumericFld('auto_delet', 'Auto deleting file', 0);
 $_POST['limitsize'] = filterNumericFld('limitsize', 'Maximum file size', 0);
 $_POST['lowlimitsize'] = filterNumericFld('lowlimitsize', 'Minimum file size', 0);
 $_POST['cpulimit'] = filterNumericFld('cpulimit', 'CPU Limit', 0);
 $_POST['serverjob'] = filterNumericFld('serverjob', 'Server Jobs', 5);
 $_POST['storage_limit'] = filterNumericFld('storage_limit', 'Storage Server File', 0);
 $_POST['pointbooster'] = filterNumericFld('pointbooster', 'Point booster', 0);
 $_POST['iframealocate'] = filterNumericFld('iframealocate', 'IFrame Allocation', 0);
 $_POST['auto_close'] = filterNumericFld('auto_close', 'Auto-close popup', 300);
 $_POST['max_trafic'] = filterNumericFld('max_trafic', 'Maximum Traffic', 0);