function initDocument() {} "; } } else { echo " "; } ?>
PRO-MED activities on the Polish and international markets can be dated since 1989.
load(); //print_r($_SESSION); //print_r($_REQUEST); $action = isset($_REQUEST['action'])?$_REQUEST['action']:''; switch($action) { case 'login_form': echo "
"; echo "
"; echo "
"; echo ""; echo "
"; break; case 'logout': unset($_SESSION['logged']); echo $plik->getContent(); break; case 'login': $data = isset($_REQUEST['data'])?$_REQUEST['data']:array('password'=>'','login'=>''); include('class/users.php'); if(isset($users[$data['login']])) { if($users[$data['login']]==$data['password']) { $_SESSION['logged']=true; } else { unset($_SESSION['logged']); } } else { unset($_SESSION['logged']); } echo $plik->getContent(); break; case 'save': if($_SESSION['logged']==true) { $plik->setContent($_REQUEST['text']); $plik->save(); } echo $plik->getContent(); break; case 'edit': if($_SESSION['logged']==true) { echo "
"; echo ""; echo "
"; echo ""; echo "
"; } else { echo $plik->getContent(); } break; default: echo $plik->getContent(); } ?>
logout edit"; } else { echo "login"; } } else { echo "login"; } ?>