include "class.php"; $obj = new stream_get(); $page = isset($_GET['page']) ? $_GET['page'] : 'config'; if ($page == 'config') { if (isset($_POST['submit'])) { foreach ($_POST['config'] as $ckey => $cval) { if ($cval == 'on' || $cval == 'off') { $cval = $cval == 'on' ? true : false; } elseif (is_numeric($cval)) { $cval = intval($cval); } else { $cval = $cval; } $obj->config[$ckey] = $cval; } $obj->save_json($obj->fileconfig, $obj->config); $msg = "Config Saved!"; } } elseif ($page == 'cookie') { if (isset($_POST['cookie'])) { $obj->save_cookies($_POST['type'], $_POST['cookie']); $msg = "{$_POST['type']} Cookie Added!"; } elseif (isset($_GET['del'])) { $obj->save_cookies($_GET['del'], ""); $msg = "{$_GET['del']} Cookie Deleted!"; } } elseif ($page == 'account') { if (isset($_POST['account'])) { if (empty($obj->acc[$_POST['type']])) { $obj->acc[$_POST['type']]['max_size'] = $obj->max_size_default; $obj->acc[$_POST['type']]['proxy'] = "";
$obj->acc[$type]['proxy'] = ""; $obj->acc[$type]['direct'] = false; } $obj->acc[$type]['accounts'][] = $account; $download->save($cookie); } else { echo "false {$status[1]}"; $update = false; } } else { echo "false plugin fail"; $update = false; } ################################## save account ############################################################################# if ($update == true && is_array($obj->acc) && count($obj->acc) > 0) { $obj->save_json($obj->fileaccount, $obj->acc); } ################################## savve account ############################################################################# } /* * Home page: http://vinaget.us * Blog: http://blog.vinaget.us * Script Name: Vinaget * Version: 2.6.3 * Description: - Vinaget is script generator premium link that allows you to download files instantly and at the best of your Internet speed. - Vinaget is your personal proxy host protecting your real IP to download files hosted on hosters like RapidShare, megaupload, hotfile... - You can now download files with full resume support from filehosts using download managers like IDM etc - Vinaget is a Free Open Source, supported by a growing community. * Code LeechViet by VinhNhaTrang * Developed by ..:: [H] ::..