Hallo an alle,
ich habe ein vorgefertigtes Projekt auf meinen Server hochgeladen und es auch erfolgreich installiert. Doch wenn ich die Website dann aufrufe wird sie mir nur komplett weiss dargestellt. Keine Fehlermeldung, garnichts!
Ich habe gedacht, dass sich das Problem bessert wenn ich es auf den Server hochlade, da es unter der lokalen XAMPP Version auch nicht funktioniert.
Was mach ich falsch?
Ich danke schonmal im Voraus für Hilfe!
Zur besseren Orientierung:
1. Der Link zur Homepage pennerlink.de (hat nichts mit dem Onlinegame "Pennergame" zu tun, falls bekannt)
2. Projektbeschreibung unter jobsoftpro.com
3. Quellcode der index.php: (notfalls kann ich auch den Rest des Scriptes zum Testen zur Verfügung stellen)
Alles anzeigen
ich habe ein vorgefertigtes Projekt auf meinen Server hochgeladen und es auch erfolgreich installiert. Doch wenn ich die Website dann aufrufe wird sie mir nur komplett weiss dargestellt. Keine Fehlermeldung, garnichts!
Ich habe gedacht, dass sich das Problem bessert wenn ich es auf den Server hochlade, da es unter der lokalen XAMPP Version auch nicht funktioniert.
Was mach ich falsch?
Ich danke schonmal im Voraus für Hilfe!
Zur besseren Orientierung:
1. Der Link zur Homepage pennerlink.de (hat nichts mit dem Onlinegame "Pennergame" zu tun, falls bekannt)
2. Projektbeschreibung unter jobsoftpro.com
3. Quellcode der index.php: (notfalls kann ich auch den Rest des Scriptes zum Testen zur Verfügung stellen)
PHP-Quellcode
- <?php
- include "./include/config.php";
- include "./common.php";
- include "./include/functions_index.php";
- include "./include/functions_auth.php";
- include "./include/functions_xml.php";
- include "./include/class.lang.php";
- $user = auth_index_user();
- @$sel = $_POST["sel"]?$_POST["sel"]:$_GET["sel"];
- if ($sel!='logoff'){
- if ( isset($_COOKIE["re_login"]) && isset($_COOKIE["re_pass"]) ){
- $strSQL = "SELECT id FROM ".USERS_TABLE." WHERE login='".$_COOKIE["re_login"]."' AND password='".$_COOKIE["re_pass"]."' ";
- $rs = $dbconn->Execute($strSQL);
- if ($rs->fields[0]>0){
- sess_write(session_id(), $rs->fields[0]);
- $user = auth_index_user();
- }
- }
- } else {
- setcookie("re_login", '', time()-7200);
- setcookie("re_pass", '', time()-7200);
- }
- $multi_lang = new MultiLang($config, $dbconn);
- if($user[4]==1){
- if(!(isset($_REQUEST["view_from_admin"]) && $_REQUEST["view_from_admin"] == 1)){
- echo "<script>location.href='".$config["site_root"]."/admin/index.php'</script>";
- }elseif ($_REQUEST["for_unreg_user"] == 1) {
- $user = auth_guest_read();
- }
- }
- if(intval($user[0]) && $user[3] != 1 && $sel == ""){
- echo "<script>location.href='".$config["site_root"]."/homepage.php'</script>";
- }
- switch($sel){
- case "logoff": LogoutUser(); break;
- case "quick_form" : FromQuick(); break;
- default: IndexPage();
- }
- function IndexPage(){
- global $smarty, $config, $dbconn, $user, $lang, $multi_lang, $REFERENCES;
- if(isset($_SERVER["PHP_SELF"]))
- $file_name = strtolower(AfterLastSlash($_SERVER["PHP_SELF"]));
- else
- $file_name = "index.php";
- IndexHomePage('index');
- if (GetSiteSettings("use_pilot_module_banners")) {
- Banners('index');
- }
- CreateMenu('index_page_menu');
- CreateMenu('index_user_menu');
- CreateMenu('lang_menu');
- CreateMenu('bottom_menu');
- $smarty->assign("cur", GetSiteSettings('site_unit_costunit'));
- $day = date("d")+1;
- $month = date("m");
- $smarty->assign("day", GetDaySelect($day));
- $smarty->assign("month", GetMonthSelect($month));
- unset($_SESSION["quick_search_arr"]);
- if(GetSiteSettings('index_last_listings')==1){
- GetLastAdsJS("hot_offers_num_at_search");
- }else
- //GetLastAdsJS($num_at_page_name, $id_user='', $page=1, $param = "?", $sorter='', $sort_order=1, $order_link="",$from='')
- GetLastAdsJS("hot_offers_num_at_search",'',1,'','','','','best_job_view');
- //init QSForm
- GetLocationContent();
- $smarty->assign("cnt", GetSiteSettings('limit_category_seek_search'));
- $used_references = array("job_category");
- foreach ($REFERENCES as $arr) {
- if (in_array($arr["key"], $used_references)) {
- //function GetRefSearchArrayJS($key, $spr_table, $value_table, $data='', $lang_add = 1){
- $job_arr=GetRefSearchArrayJS($arr["key"],$arr["spr_table"], $arr["val_table"], $data, $lang_add);
- $smarty->assign("job_category",$job_arr);
- }
- }
- GetJobType($job_arr);
- GetJobComp(GetSiteSettings("lim_index_comp")*3);
- if(GetSiteSettings("search_by_region"))
- GetJobCountry(GetSiteSettings("search_by_region_country"));
- $smarty->assign("from_file", "index");
- $smarty->assign("file_name", $file_name);
- $smarty->display(TrimSlash($config["index_theme_path"])."/index_home_page.tpl");
- exit;
- }
- function LogoutUser(){
- global $smarty, $config, $dbconn, $user;
- $strSQL = "Delete from ".ACTIVE_SESSIONS_TABLE." where id_user='".$user[0]."' and session='".session_id()."' ";
- $rs = $dbconn->Execute($strSQL);
- echo "<script>location.href='".$config["site_root"]."/index.php'</script>";
- return;
- }
- function GetJobCountry($country_id){
- global $smarty, $config, $dbconn, $user;
- $strSQL = "SELECT id, name FROM ".REGION_TABLE." WHERE id_country='".$country_id."' ORDER BY name";
- $rs = $dbconn->Execute($strSQL);
- if ($rs->fields[0]>0) {
- $i = 0;
- while(!$rs->EOF) {
- $row = $rs->GetRowAssoc(false);
- $region[$i]["id"] = $row["id"];
- if ($config["lang_ident"]!='ru') {
- $region[$i]["name"] = RusToTranslit($row["name"]);
- } else {
- $region[$i]["name"] = $row["name"];
- }
- $strSQL1="SELECT COUNT(DISTINCT uv.id)
- FROM ".USER_VAC_TABLE." uv
- LEFT JOIN ".USERS_TABLE." u ON u.id = uv.id_user
- WHERE u.status = '1'
- AND u.root_user = '0'
- AND u.guest_user = '0'
- AND u.active = '1'
- AND uv.status = '1'
- AND u.user_type = '2'
- AND uv.id_country=".$country_id."
- AND uv.id_region=".$region[$i]["id"];
- $rs1 = $dbconn->Execute($strSQL1);
- $region[$i]["count"]=intval($rs1->fields[0]);
- $rs->MoveNext();
- $i++;
- }
- }
- $lim_reg=intval(count($region)/4);
- $smarty->assign("search_country", $country_id);
- $smarty->assign("job_region", $region);
- $smarty->assign("lim_reg", $lim_reg+1);
- }
- //get jobs by type
- function GetJobType($job_category) {
- global $lang, $smarty, $dbconn, $user, $config;
- for($i=0; $i<count($job_category);$i++){
- $strSQL="SELECT COUNT(DISTINCT jc.id_ad)
- FROM ".SPR_JOB_CATEGORY_USER_TABLE." jc
- LEFT JOIN ".USERS_TABLE." u ON u.id = uv.id_user
- LEFT JOIN ".USER_VAC_TABLE." uv ON uv.id=jc.id_ad
- WHERE u.status = '1'
- AND u.root_user = '0'
- AND u.guest_user = '0'
- AND u.active = '1'
- AND uv.status = '1'
- AND jc.type='3' AND jc.id_spr=".$job_category[$i]['id']." ";
- $rs=$dbconn->Execute($strSQL);
- $job_category[$i]['count']=intval($rs->fields[0]);
- for($j=0; $j<count($job_category[$i]['opt']);$j++){
- $strSQL="SELECT COUNT(DISTINCT jc.id_ad)
- FROM ".SPR_JOB_CATEGORY_USER_TABLE." jc
- LEFT JOIN ".USERS_TABLE." u ON u.id = uv.id_user
- LEFT JOIN ".USER_VAC_TABLE." uv ON uv.id=jc.id_ad
- WHERE u.status = '1'
- AND u.root_user = '0'
- AND u.guest_user = '0'
- AND u.active = '1'
- AND uv.status = '1'
- AND jc.type='3' AND jc.id_spr=".$job_category[$i]['id']." AND id_value=".$job_category[$i]['opt'][$j]['value']." ";
- $rs1=$dbconn->Execute($strSQL);
- $job_category[$i]['opt'][$j]['count']=intval($rs1->fields[0]);
- }
- }
- $smarty->assign("job_category_type",$job_category);
- }
- function GetJobComp($lim) {
- global $lang, $smarty, $dbconn, $user, $config;
- $strSQL="SELECT ei.id_user,ei.company_name,COUNT(DISTINCT uv.id) as count
- FROM ".USER_VAC_TABLE." uv
- LEFT JOIN ".USERS_TABLE." u ON u.id = uv.id_user
- LEFT JOIN ".EMP_INFO_TABLE." ei ON ei.id_user = uv.id_user
- WHERE u.status = '1'
- AND u.root_user = '0'
- AND u.guest_user = '0'
- AND u.active = '1'
- AND uv.status = '1'
- AND u.user_type = '2'
- GROUP BY ei.id_user ORDER BY count ASC LIMIT 0,".$lim;
- $rs=$dbconn->Execute($strSQL);
- if ($rs->fields[0]>0) {
- $i = 0;
- while(!$rs->EOF) {
- $row = $rs->GetRowAssoc(false);
- $job_comp[$i]["id_user"] = $row["id_user"];
- $job_comp[$i]["company_name"] = $row["company_name"];
- $job_comp[$i]["count"] = $row["count"];
- $rs->MoveNext();
- $i++;
- }
- }
- $lim_comp=3;
- $smarty->assign("job_comp", $job_comp);
- $smarty->assign("lim_comp", $lim_comp);
- }
- ?>