コード例 #1
0
ファイル: xpanel.php プロジェクト: laiello/rapidleech36b
     $_account .= (isset($_POST[$v . '_hashpremix']) && $_POST[$v . '_hashpremix'] == 'on' ? '' : '//') . "\$premium_acc[\"{$v}\"] = array('cookie' => '" . stripslashes(trim($_POST[$v . '_cookie'])) . "');\r\n";
 }
 unset($v);
 $_account .= "\r\n\r\n";
 $_account .= "###Premium key configuration, dont use this if you have already set another premium account config\r\n";
 foreach ($ar_pre_key_acc as $k => $v) {
     $_account .= (isset($_POST[$v . '_keypremix']) && $_POST[$v . '_keypremix'] == 'on' ? '' : '//') . "\$premium_acc[\"{$v}\"] = array('key' => '" . stripslashes(trim($_POST[$v . '_key'])) . "';\r\n";
 }
 unset($v);
 $_account .= "\r\n\r\n";
 $_account .= "#Upload Account #\r\n";
 $_account .= "\$upload_acc = array();\r\n";
 foreach ($ar_up_acc as $k => $v) {
     $field = array();
     $field[$v . '_upload'] = array($v, 'user_' . $v . '_up', 'pass_' . $v . '_up');
     $_account .= fillField_premium("upload_acc", $field, '');
 }
 unset($v);
 $_account .= "\r\n\r\n";
 $_account .= "#Secret key for cookie encryption\r\n";
 $_account .= "#Make up a random one to protect your premium cookies (max length: 56). Example: \$secretkey = 'UijSY5wjP1Ii'; - DO NOT use this example \$secretkey, or your premium accounts/cookies could be stolen!!\r\n";
 $_account .= "#IF THIS IS NOT SET BEFORE YOU USE PREMIUM SERVICES, YOU WILL BE WARNED BY THE RAPIDLEECH SCRIPT. OTHERWISE YOUR PREMIUM ACCOUNTS AND/OR COOKIES COULD BE COMPROMISED!\r\n";
 $_account .= "\$secretkey = '" . stripslashes(trim($_POST['secretkey'])) . "';//Place your Secret Key\r\n\r\n";
 $_account .= "# Acc info & drop down\r\n";
 $_account .= "\$ar_host_acc = array(\r\n";
 foreach ($ar_pre_acc_all as $key => $value) {
     $_account .= "\t'{$value}'\t=>  '" . str_replace('_', '.', $value) . "',\r\n";
 }
 unset($value);
 $_account .= ");\r\n";
 $_account .= "\r\n\r\n";
コード例 #2
0
 }
 $field = array("rs_de_premix" => array("rs_de", "rplde", "rpplde"), "megaupload_premix" => array("megaupload", "usrmu", "passmu"), "megashare_premix" => array("megashare", "usrmega", "passmega"), "netload_premix" => array("netload", "usrnet", "passnet"), "gigasize_premix" => array("gigasize", "usrgz", "passgz"), "vBulletin_acc_premix" => array("vBulletin_acc", "usrvbul", "passvbul"), "uploaded_to_premix" => array("uploaded_to", "usrupto", "passupto"), "easyshare_premix" => array("easyshare", "usreasy", "passeasy"), "depositfiles_premix" => array("depositfiles", "usrdepos", "passdepos"), "hotfile_com_premix" => array("hotfile_com", "usrhotfile", "passhotfile"), "uploading_premix" => array("uploading", "usruploading", "passuploading"), "filefactory_premix" => array("filefactory", "usrfilefactory", "passfilefactory"), "ifile_it_premix" => array("ifile_it", "usrifile", "passifile"), "sendspace_premix" => array("sendspace", "usrsendspace", "passsendspace"), "fileserve_com_premix" => array("fileserve_com", "usrfileserve", "passfileserve"), "filesonic_com_premix" => array("filesonic_com", "usrfilesonic", "passfilesonic"), "oron_com_premix" => array("oron_com", "usroron", "passoron"), "duckload_com_premix" => array("duckload_com", "usrduckload", "passduckload"), "shareonline_biz_premix" => array("shareonline_biz", "usrshareonline", "passshareonline"), "torrific_com_premix" => array("torrific_com", "usrtorrific", "passtorrific"));
 $_config .= fillField_premium("premium_acc", $field, $upcc);
 $_config .= "#Auto Download Premium Account #\n";
 $_config .= (isset($_POST['autodlpremix']) && $_POST['autodlpremix'] == 'on' ? $upcc : '//') . "\$premium_acc_audl = " . (isset($_POST['autodlpremix']) && $_POST['autodlpremix'] == 'on' ? 'true' : 'false') . ";\n\n";
 $_config .= "#Megaupload cookie #\n";
 $_config .= (isset($_POST['muhash_premix']) && $_POST['muhash_premix'] == 'on' ? '' : '//') . "\$mu_cookie_user_value = '" . addslashes(trim($_POST['muhashcookie'])) . "';\n\n";
 $_config .= "#Hotfile cookie #\n";
 $_config .= (isset($_POST['hfhash_premix']) && $_POST['hfhash_premix'] == 'on' ? '' : '//') . "\$hf_cookie_auth_value = '" . addslashes(trim($_POST['hfhashcookie'])) . "';\n\n";
 $_config .= "#Rapidshare cookie #\n";
 $_config .= (isset($_POST['rshash_premix']) && $_POST['rshash_premix'] == 'on' ? '' : '//') . "\$rs_cookie_enc_value = '" . addslashes(trim($_POST['rshashcookie'])) . "';\n\n";
 $_config .= "###Imageshack Torrent Account ###\n";
 $_config .= (isset($_POST['imghack_premix']) && $_POST['imghack_premix'] == 'on' ? '' : '//') . "\$imageshack_acc = array('user' => '" . trim($_POST['usrimghk']) . "', 'pass' => '" . trim($_POST['passimghk']) . "');\n\n";
 $_config .= "#Upload Account #\n";
 $field = array("mediafire_up_upload" => array("mediafire_up", "usrmf_up", "passmf_up"), "rs_com_coll_upload" => array("rs_com_coll", "usrrs_com_coll_up", "passrs_com_coll_up"), "rs_com_pre_upload" => array("rs_com_pre", "usrrs_com_pre_up", "passrs_com_pre_up"), "mu_pre_upload" => array("mu_pre", "usrmu_pre_up", "passmu_pre_up"), "hf_com_upload" => array("hf_com", "usrhf_com_up", "passhf_com_up"), "easysh_mem_upload" => array("easysh_mem", "usreasysh_mem_up", "passeasysh_mem_up"), "deposit_up_upload" => array("deposit_up", "usrdeposit_up_up", "passdeposit_up_up"), "uploading_up_upload" => array("uploading_up", "usruploading_up_up", "passuploading_up_up"));
 $_config .= fillField_premium("upload_acc", $field, $useulcc);
 $_config .= "\n\n";
 $_config .= "#-LIMITATION-CONFIG\n";
 $_config .= "\$limitbyip = " . (isset($_POST['limitbyip']) && $_POST['limitbyip'] == 'on' ? 'true' : 'false') . "; //limit RL by IP; dont forget chmod 777 to folder tmp\n";
 $_config .= "\$maximum_free_downloads = " . $_POST['max_free_dl'] . "; //how many times it'll granted?\n";
 $_config .= "\$delay_per_ip = " . $_POST['delayip'] . "; //(in hour) recycle allowable IP\n\n";
 $_config .= "\$auto_del_time = " . $_POST['auto_delet'] . "; //(in hour) delete leeched file\n";
 $_config .= "\$limitsize = " . $_POST['limitsize'] . "; //(in MB) limit upper-bound of filesize\n";
 $_config .= "\$lowlimitsize = " . $_POST['lowlimitsize'] . "; //(in MB) limit lower-bound of filesize\n\n";
 $_config .= "\$storage_limit = " . $_POST['storage_limit'] . "; //(in MB) limit your server files storage.  1 * 1024 = 1 GB; \n\n";
 //$_config .= "\$cpulimit = ".$_POST['cpulimit'].";//CPU load percen to limit leeching \n\n";
 $_config .= "\$downloadLimitbyip = " . (isset($_POST['downloadLimitbyip']) && $_POST['downloadLimitbyip'] == 'on' ? 'true' : 'false') . "; //limit RL by IP\n";
 $_config .= "\$downloadsPerIP = " . $_POST['dl_limit_max'] . "; //how many times it'll granted?\n";
 $_config .= "\$downloadDelayPerIP = " . $_POST['dl_per_ip'] . "; //(in second)\n\n";
 $_config .= "\$audl = " . $_POST['audl'] . "; //how many link allow to auto-download work ?\n";
 $_config .= "\$auul = " . $_POST['auul'] . "; //how many file allow to auto-upload work ?\n\n";