//Najpierw sprawdzamy czy wprowadzony adres to www.danmed.pl - Ot kolejne ujednolicenie, które trzeba wykonać if($_SERVER['HTTP_HOST'] != 'test1.danmed.pl') header('Location: http://test1.danmed.pl/?id=7'); //Dzięki temu mykowi nie będą nam uciekać sesje session_start(); ob_start(); error_reporting(E_ERROR | E_WARNING | E_PARSE/* | E_NOTICE*/);//Zgďż˝aszanie b��dďż˝ww typu: krytyki, warning, skďż˝adni i notice //error_reporting(E_ERROR);//Zgďż˝aszanie tylko b��dďż˝w krytycznych //define ( _ROOT, "/partner/");//Konfiguracja w katalogu partner define ( _ROOT, "/");//Konfiguracja na serwerze danmed //define ( _ROOT, "/home/vhris/workspace/lgs_danmed/"); include _ROOT."include/danmed/admin/include/const.php"; include _ROOT."tools.php"; include _ROOT."include/danmed/admin/include/view_lib.php"; include _ROOT."include/danmed/admin/include/syslog_lib.php"; if($_GET[action]!='order' && $_SERVER['SERVER_PORT']==443) { header('Location: http://www.danmed.pl'); } define ( _SHOP_PATH, "/include/danmed/sklep"); include _SHOP_PATH."/include/user_auth.php"; include _SHOP_PATH."/include/const.php"; include _SHOP_PATH."/include/function.php"; include _SHOP_PATH."/include/html_func.php"; include _SHOP_PATH."/class/class_user.php"; include _SHOP_PATH."/class/class_group.php"; include _SHOP_PATH."/class/class_product.php"; if($_GET[idProduct]) { $oProduct = new cProduct($_GET[idProduct]); $oProductItem = new cProductItem($_GET[idProduct]); } if($_GET[action]=='buy'||$_GET[action]=='order'||$_GET[action]=='remind'||$_GET[action]=='register'||$_GET[action]=='activate') { if($_GET["id"]=="") $_GET["id"]=_DM_SKLEP; }else{ if($_GET["id"]=="") $_GET["id"]=_DM_SKLEP; } // voting include _ROOT."include/vote.php"; $bVoteFailed = VerifyVote(); $id = strip_tags($_GET[id]); $action = strip_tags($_GET[action]); if ( $id > 0 ) $oView = new cView($id); if ( $oView->id > 0 ){ //poszukanie w liscie $res = mysql_query('select * from document where id = '.$oView->id); $res = mysql_fetch_assoc($res); if(isset($res['bDeleted']) && $res['bDeleted'] == 1){ $name = 'Dokument usunięty'; $oView = null; }else{ $name = $oView->sTitle; } //echo '
';var_dump($oView);echo '';die(); }else $name = "Strona Główna"; if ( $name ) include _ROOT."include/danmed/count.php"; //echo ''; //Ma być kurwa tylko jedno kurwa logowanie!!! //Najpierw ujednolicamy kurwa dane z POST if($_POST['login']){ $real_login = $_POST['login']; }elseif($_POST['login_s']){ $real_login = $_POST['login_s']; } if($_POST['password']){ $real_passwd = $_POST['password']; }elseif($_POST['password_s']){ $real_passwd = $_POST['password_s']; } // logowanie do sklepu if ( $real_login && $real_passwd ) { $oLogin = LoginUser($PHPSESSID, $real_login, $real_passwd); $login_info = ''; if(is_string($oLogin)){ switch($oLogin){ case 'unactive': $login_info = 'Konto jest nieaktywne. Konto może być aktywowane tylko przez administratora.'; break; case 'failPasswd': //Błędne hasło case 'failLogin': //Brak takiego loginu $login_info = 'Błędny login i/lub hasło.'; break; case 'accountOff': $login_info = 'Zbyt dużo nieudanych prób logowania. Konto zostaje zawieszone.
| |||||||