if (check_account("filepost.com", $account) == true) { die("false"); } if (stristr($account, ':')) { list($user, $pass) = explode(':', $account); $tid = str_replace(".", "12", microtime(true)); $data = $obj->curl("http://filepost.com/general/login_form/?JsHttpRequest=" . $tid . "-xml", "", "email=" . $user . "&password="******""); if (strpos($data, "Incorrect e-mail\\/password combination") || strpos($data, "captcha")) { die("false"); } else { $cookie = $obj->GetCookies($data); } } else { $cookie = "SID=" . $account; } if (check_account("filepost.com", $cookie) == true) { die("false"); } $data = $obj->curl("http://filepost.com/profile/", $cookie, ""); if (strpos($data, "Account type: <span>Premium<")) { $obj->acc["filepost.com"]['accounts'][] = $account; $donate = true; } } ################################## DONATE ACC filepost.com #################################################################### ################################## Save Account ############################################################################### if ($donate == true && is_array($obj->acc) && count($obj->acc) > 0) { $str = "<?php"; $str .= "\n"; $str .= "\n\$this->acc = array("; $str .= "\n";
private function securityChecks() { $mail_subject = array(); if (check_account()) { $mail_subject[] = 'Connexion d\'un utilisateur surveillé'; } if (check_ip('unsafe')) { $mail_subject[] = 'Une IP surveillee a tente de se connecter'; if (check_ip('ban')) { send_warning_mail(implode(' - ', $mail_subject)); $this->destroy(); Platal::page()->kill('Une erreur est survenue lors de la procédure d\'authentification. ' . 'Merci de contacter au plus vite ' . '<a href="mailto:support@polytechnique.org">support@polytechnique.org</a>'); return false; } } if (count($mail_subject)) { send_warning_mail(implode(' - ', $mail_subject)); } }
return false; } foreach ($obj->acc[$host]['accounts'] as $value) { if ($account == $value) { return true; } } return false; } if (!empty($_POST["accounts"])) { $obj = new stream_get(); $type = $_POST['type']; $_POST["accounts"] = str_replace(" ", "", $_POST["accounts"]); $account = trim($_POST['accounts']); $donate = false; if (check_account($type, $account)) { die("false duplicate"); } require_once 'hosts/' . $obj->list_host[$type]['file']; $download = new $obj->list_host[$type]['class']($obj, $type); if ($download->lib->acc[$download->site]['proxy'] != "") { $download->lib->proxy = $download->lib->acc[$download->site]['proxy']; } if (method_exists($download, "CheckAcc")) { if (strpos($account, ":")) { list($user, $pass) = explode(':', $account); $cookie = $download->Login($user, $pass); } else { $cookie = $account; } $status = $download->CheckAcc($cookie);
function print_inventory_sales() { global $path_to_root; $from = $_POST['PARAM_0']; $to = $_POST['PARAM_1']; $destination = $_POST['PARAM_2']; if ($destination) { include_once $path_to_root . "/reporting/includes/excel_report.inc"; } else { include_once $path_to_root . "/reporting/includes/pdf_report.inc"; } $dec = user_price_dec(); if ($category == ALL_NUMERIC) { $category = 0; } if ($category == 0) { $cat = _('All'); } else { $cat = get_category_name($category); } $cols = array(0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950, 1000, 1050, 1100, 1150, 1200); $headers = array(_('DATE'), _('PAYEES'), _('PARTICULARS'), _('GV NO'), _('CHECK NO'), _('CASH IN'), _('PURCHASES'), _('SALARIES &'), _('SUPPLIES'), _('GASOLINE &'), _('LIGHT &'), _('TELECOMS'), _('REPAIRS'), _('REPRESENTATION'), _('TRANSPORTATION'), _('POSTAGE'), _('AD &'), _('PROF.'), _('INSURANCE'), _('CASH'), _('SUNDRY'), _('DEBIT'), _('CREDIT')); $header2 = array(_(''), '', '', '', _(''), _('BANK'), _(''), _('WAGES'), _(''), _('OIL'), _('WATER'), _(''), _('& MAINT.'), _('EXPENSE'), _('EXPENSE'), _('& COURIER'), _('PROMO'), _('FEES'), _(''), _('ADVANCE'), _('ACCOUNTS')); $aligns = array('left', 'center', 'center', 'center', 'right', 'right', 'right', 'right', 'right', 'right', 'right', 'right', 'right', 'right', 'right'); $params = array(0 => $comments, 1 => array('text' => _('Period'), 'from' => $from, 'to' => $to), 2 => array('text' => _('Category'), 'from' => $cat, 'to' => '')); $rep = new FrontReport(_('Cash Disbursement Summary'), "CashDisbursementSummary", user_pagesize(), 8, 'L'); $rep->Font(); $rep->Info($params, $cols, $header2, $aligns, $cols, $headers, $aligns); $rep->NewPage(); $salary = '6-1010'; $purchase = '5-1010'; $supplies = '6-1175'; $gas_oil = '6-1110'; $light_water = '6-1075'; $tel = '6-1080'; $repair = '6-1085'; $representation = '6-1055'; $transport = '6-1070'; $postage = '6-1155'; $ad_promo = '6-1230'; $prof_fee = '6-1185'; $insurance = '6-1105'; $cash_advance = '1-2045'; $petty_cash = '1-1010'; $res = getTransactions($from, $to); $previous = ''; $var = array($salary, $purchase, $gas_oil, $light_water, $tel, $repair, $representation, $transport, $postage, $ad_promo, $prof_fee, $insurance, $cash_advance); $total = 0; $purchase_total = 0; $sal_total = 0; $sup_total = 0; $gas_total = 0; $light_total = 0; $tel_total = 0; $repair_total = 0; $rep_total = 0; $trans_total = 0; $post_total = 0; $ad_total = 0; $prof_total = 0; $ins_total = 0; $adv_total = 0; $dr = 0; $cr = 0; $sun_bank_name = ''; $sun_bank_amount = ''; while ($myrow = db_fetch($res)) { $check = $myrow['customized_no']; $current = $check; $name = payment_person_name($myrow["person_type_id"], $myrow["person_id"]); $comment = get_comments_string($myrow['type'], $myrow['type_no']); $account_name = get_gl_account_name($myrow['account']); //$rep->NewLine(); if ($current != '') { if ($previous == $current) { if ($myrow['type'] == '') { if (is_bank_account($myrow['account'])) { if ($myrow['account'] != $petty_cash) { $rep->AmountCol(5, 6, abs($myrow['amount']), 2); $total += abs($myrow['amount']); } } if ($myrow['account'] == $purchase) { if ($myrow['amount'] > 0) { $rep->AmountCol(6, 7, abs($myrow['amount']), 2); $purchase_total += abs($myrow['amount']); } } if ($myrow['account'] == $salary) { if ($myrow['amount'] > 0) { $rep->AmountCol(7, 8, abs($myrow['amount']), 2); $sal_total += abs($myrow['amount']); } } if ($myrow['account'] == $supplies) { if ($myrow['amount'] > 0) { $rep->AmountCol(8, 9, abs($myrow['amount']), 2); $sup_total += abs($myrow['amount']); } } if ($myrow['account'] == $gas_oil) { if ($myrow['amount'] > 0) { $rep->AmountCol(9, 10, abs($myrow['amount']), 2); $gas_total += abs($myrow['amount']); } } if ($myrow['account'] == $light_water) { if ($myrow['amount'] > 0) { $rep->AmountCol(10, 11, abs($myrow['amount']), 2); $light_total += abs($myrow['amount']); } } if ($myrow['account'] == $tel) { if ($myrow['amount'] > 0) { $rep->AmountCol(11, 12, abs($myrow['amount']), 2); $tel_total += abs($myrow['amount']); } } if ($myrow['account'] == $repair) { if ($myrow['amount'] > 0) { $rep->AmountCol(12, 13, abs($myrow['amount']), 2); $repair_total += abs($myrow['amount']); } } if ($myrow['account'] == $representation) { if ($myrow['amount'] > 0) { $rep->AmountCol(13, 14, abs($myrow['amount']), 2); $rep_total += abs($myrow['amount']); } } if ($myrow['account'] == $transport) { if ($myrow['amount'] > 0) { $rep->AmountCol(14, 15, abs($myrow['amount']), 2); $trans_total += abs($myrow['amount']); } } if ($myrow['account'] == $postage) { if ($myrow['amount'] > 0) { $rep->AmountCol(15, 16, abs($myrow['amount']), 2); $post_total += abs($myrow['amount']); } } if ($myrow['account'] == $ad_promo) { if ($myrow['amount'] > 0) { $rep->AmountCol(16, 17, abs($myrow['amount']), 2); $ad_total += abs($myrow['amount']); } } if ($myrow['account'] == $prof_fee) { if ($myrow['amount'] > 0) { $rep->AmountCol(17, 18, abs($myrow['amount']), 2); $prof_total += abs($myrow['amount']); } } if ($myrow['account'] == $insurance) { if ($myrow['amount'] > 0) { $rep->AmountCol(18, 19, abs($myrow['amount']), 2); $ins_total += abs($myrow['amount']); } } if ($myrow['account'] == $cash_advance) { if ($myrow['amount'] > 0) { $rep->AmountCol(19, 20, abs($myrow['amount']), 2); $adv_total += abs($myrow['amount']); } } } } else { if ($sun_bank_amount != 0 && $sun_bank_name != '') { $rep->TextCol(20, 21, $account_name); $rep->AmountCol(21, 22, $myrow['amount'], 2); $rep->NewLine(); } $result = get_sundry($previous); $ctr = 0; while ($row = db_fetch($result)) { if ($row['type'] == "") { if (!is_bank_account($row['account'])) { $yes = check_account($row['account'], $row['amount']); if ($yes) { // $rep->TextCol(22, 23, $check_account($row['account'])); $ctr++; if ($ctr > 1) { $rep->NewLine(); } $account_name2 = get_gl_account_name($row['account']); $rep->TextCol(20, 21, $account_name2); if ($row['amount'] > 0) { $rep->AmountCol(21, 22, $row['amount'], 2); $dr += abs($myrow['amount']); } else { $rep->AmountCol(22, 23, abs($row['amount']), 2); $cr += abs($myrow['amount']); } } } } } $rep->NewLine(); if ($myrow['type'] == '') { $rep->TextCol(0, 1, $myrow['tranDate']); $rep->TextCol(1, 2, $name); $rep->TextCol(2, 3, $comment); $rep->TextCol(3, 4, $myrow['customized_no']); $rep->TextCol(4, 5, $myrow['check_num']); if (is_bank_account($myrow['account'])) { if ($myrow['account'] != $petty_cash) { $rep->AmountCol(5, 6, abs($myrow['amount']), 2); $total += abs($myrow['amount']); } } if ($myrow['account'] == $purchase) { if ($myrow['amount'] > 0) { $rep->AmountCol(6, 7, abs($myrow['amount']), 2); $purchase_total += abs($myrow['amount']); } } if ($myrow['account'] == $salary) { if ($myrow['amount'] > 0) { $rep->AmountCol(7, 8, abs($myrow['amount']), 2); $sal_total += abs($myrow['amount']); } } if ($myrow['account'] == $supplies) { if ($myrow['amount'] > 0) { $rep->AmountCol(8, 9, abs($myrow['amount']), 2); $sup_total += abs($myrow['amount']); } } if ($myrow['account'] == $gas_oil) { if ($myrow['amount'] > 0) { $rep->AmountCol(9, 10, abs($myrow['amount']), 2); $gas_total += abs($myrow['amount']); } } if ($myrow['account'] == $light_water) { if ($myrow['amount'] > 0) { $rep->AmountCol(10, 11, abs($myrow['amount']), 2); $light_total += abs($myrow['amount']); } } if ($myrow['account'] == $tel) { if ($myrow['amount'] > 0) { $rep->AmountCol(11, 12, abs($myrow['amount']), 2); $tel_total += abs($myrow['amount']); } } if ($myrow['account'] == $repair) { if ($myrow['amount'] > 0) { $rep->AmountCol(12, 13, abs($myrow['amount']), 2); $repair_total += abs($myrow['amount']); } } if ($myrow['account'] == $representation) { if ($myrow['amount'] > 0) { $rep->AmountCol(13, 14, abs($myrow['amount']), 2); $rep_total += abs($myrow['amount']); } } if ($myrow['account'] == $transport) { if ($myrow['amount'] > 0) { $rep->AmountCol(14, 15, abs($myrow['amount']), 2); $trans_total += abs($myrow['amount']); } } if ($myrow['account'] == $postage) { if ($myrow['amount'] > 0) { $rep->AmountCol(15, 16, abs($myrow['amount']), 2); $post_total += abs($myrow['amount']); } } if ($myrow['account'] == $ad_promo) { if ($myrow['amount'] > 0) { $rep->AmountCol(16, 17, abs($myrow['amount']), 2); $ad_total += abs($myrow['amount']); } } if ($myrow['account'] == $prof_fee) { if ($myrow['amount'] > 0) { $rep->AmountCol(17, 18, abs($myrow['amount']), 2); $prof_total += abs($myrow['amount']); } } if ($myrow['account'] == $insurance) { if ($myrow['amount'] > 0) { $rep->AmountCol(18, 19, abs($myrow['amount']), 2); $ins_total += abs($myrow['amount']); } } if ($myrow['account'] == $cash_advance) { if ($myrow['amount'] > 0) { $rep->AmountCol(19, 20, abs($myrow['amount']), 2); $adv_total += abs($myrow['amount']); } } } else { $rep->TextCol(0, 1, $myrow['tranDate']); $rep->TextCol(1, 2, "Cancelled"); $rep->TextCol(2, 3, ""); $rep->TextCol(3, 4, $myrow['customized_no']); $rep->TextCol(4, 5, $myrow['check_num']); } } $previous = $current; } } $rep->NewLine(); $rep->Font('bold'); $rep->AmountCol(5, 6, $total, 2); $rep->AmountCol(6, 7, $purchase_total, 2); $rep->AmountCol(7, 8, $sal_total, 2); $rep->AmountCol(8, 9, $sup_total, 2); $rep->AmountCol(9, 10, $gas_total, 2); $rep->AmountCol(10, 11, $light_total, 2); $rep->AmountCol(11, 12, $tel_total, 2); $rep->AmountCol(12, 13, $repair_total, 2); $rep->AmountCol(13, 14, $rep_total, 2); $rep->AmountCol(14, 15, $trans_total, 2); $rep->AmountCol(15, 16, $post_total, 2); $rep->AmountCol(16, 17, $ad_total, 2); $rep->AmountCol(17, 18, $prof_total, 2); $rep->AmountCol(18, 19, $ins_total, 2); $rep->AmountCol(19, 20, $adv_total, 2); $rep->AmountCol(21, 22, $dr, 2); $rep->AmountCol(22, 23, $cr, 2); /* $i = 0; $k = 1; foreach($var as $vars) { $tots = getTotal($vars); $rep->AmountCol($i, $k, $tots, 2); $i++; $j++; }*/ $rep->End(); }
} elseif ($type == "uploaded") { if (check_account("uploaded.to", $account) == true) { die("false"); } if (stristr($account, ':')) { list($user, $pass) = explode(':', $account); $page = $obj->curl("http://uploaded.net/io/login", '', "id={$user}&pw={$pass}"); if (strpos($page, "password combination")) { die("false"); } else { $cookie = $obj->GetCookies($page); } } else { $cookie = $account; } if (check_account("uploaded.to", $cookie) == true) { die("false"); } $data = $obj->curl("http://uploaded.net", $cookie, ""); if (strpos($data, '<em>Premium</em>')) { $obj->acc["uploaded.to"]['accounts'][] = $account; $donate = true; } } ################################## DONATE ACC uploaded.to ##################################################################### ################################## savve account ############################################################################# if ($donate == true && is_array($obj->acc) && count($obj->acc) > 0) { $str = "<?php"; $str .= "\n"; $str .= "\n\$this->acc = array("; $str .= "\n";
} if ($_GET["call"] == "member.html") { if (check_account($_GET["account"]) == false || check_account($_GET["password"]) == false) { echo "eregi_error"; exit; } $sql = "select * from " . PREFIX . "member WHERE account='" . quotes($_GET["account"]) . "'"; $temp = $conn->GetRow($sql); if ($temp) { echo 1; } else { echo 0; } } if ($_GET["call"] == "admin.html") { if (check_account($_GET["account"]) == false || check_account($_GET["password"]) == false) { echo "eregi_error"; exit; } $sql = "select * from " . PREFIX . "admin WHERE account='" . quotes($_GET["account"]) . "'"; $temp = $conn->GetRow($sql); if ($temp) { echo 1; } else { echo 0; } } if ($_GET["call"] == "admin_group") { $sql = "select * from " . PREFIX . "sysmenu WHERE lv='" . quotes($_GET["lv"]) . "'"; $tmp = $conn->GetRow($sql); if ($tmp["parents"] == "0") {