$dict['en']['tab_sms'] = "SMS"; $dict['en']['tab_cheaper'] = "Cheaper"; $dict['en']['tab_targets'] = "Targets"; $dict['en']['tab_help'] = "Help"; $dict['en']['txt_js'] = "JavaScript is not loaded!"; $dict['en']['lab_artist'] = "Artist"; $dict['en']['lab_music'] = "Music"; $dict['en']['lab_lyrics'] = "Lyrics"; $service = $db->getService($par_css); $css = isset($service['css']) ? $service['css'] : "http://partner.mobikar.net/mobikar.css"; $par_product = isset($_GET['product']) ? $_GET['product'] : "2"; $product = $db->getProduct($par_product); $koszt = $product['product']['coins']; $suffix = ""; if ($par_partner != 0) { $partner = $db->getPartner(null, $par_partner); $suffix = isset($partner['suffix']) ? "." . strtoupper($partner['suffix']) : ""; } $sms_code = "AP.MK" . $suffix; $sms_number = "75068"; $sms_price = "6,10 zł"; $allpay_code = "MK" . $suffix; $allpay_price = "3,99 zł"; if (count($product['songs']) > 1) { $sms_code = "AP.MKP" . $suffix; $sms_number = "79068"; $sms_price = "10,98 zł"; $allpay_code = "MKP" . $suffix; $allpay_price = "6,99 zł"; } if (strcmp($par_format, 'xhtml') == 0) {
$isAllowed = false; $rowPartner = null; $sum = 0; $sum_coins = 0; $sum_songs = 0; $sum_payed = 0; $soldCoins = null; $soldSongs = null; $services = null; $songs = null; $history_month_coins = null; $history_month_songs = null; $history_cash = null; if ($user != null && $passwd != null) { $db = new Database(); $rowPartner = $db->getPartner($user, null); if ($rowPartner != null) { if (isset($rowPartner['password']) && strcmp($passwd, $rowPartner['password']) == 0) { $partnerId = null; if (isset($rowPartner['id'])) { $partnerId = $rowPartner['id']; } $soldCoins = $db->getPartnerSoldCoins($partnerId); $soldSongs = $db->getPartnerSoldSongs($partnerId); $services = $db->getPartnerServices($partnerId); $songs = $db->getPartnerSongs($partnerId); $history_month_coins = $db->getPartnerHistoryMonthlyCoins($partnerId); $history_month_songs = $db->getPartnerHistoryMonthlySongs($partnerId); $history_cash = $db->getPartnerHistoryCashing($partnerId); $isAllowed = true; }