SECURITY WARNING
You have not followed our instructions to delete install.php immediately after install. Leaving this file here is a major security problem and opens your site up to wild hacking.

"; } } /* while ($lCatCounter<100) { $lCatFatherId=1; $lCatAllowAds='on'; $lCatName="testcat_" . $lCatCounter; $lCatDescription=""; $sql="insert into $cat_tbl (cat_name,cat_description,cat_allow_ads,cat_fatherid) values ("; $sql.="'$lCatName', '$lCatDescription','$lCatAllowAds',$lCatFatherId)"; $res=q($sql); $id=mysql_insert_id(); $lCatCounter++; } */ // If we are on the frontpage, write out welcome message along with flags $tplIndex=new TplLoad; $tplIndex->assign("catname","$lCatName"); $val_string = ""; $tplIndex->assign("index_catid",$catid); $tplIndex->assign("banner",$lBanner); $tplIndex->assign("isFrontpage","$fp"); if ($fp && !$set_latest_fp) $tplIndex->assign("HideLastListFp","1"); $tplIndex->assign("index_nameofsite",$set_sitename); $tplIndex->assign("index_welcome",formatString(WELCOME_MESSAGE, array("$set_sitename"))); $tplIndex->assign("index_welcome_1",formatString(LA_WELCOME_1, array("$set_sitename"))); $tplIndex->assign("index_welcome_2",formatString(LA_WELCOME_2, array("$set_sitename"))); $tplIndex->assign("index_welcome_91",formatString(LA_WELCOME_LOGGED_1, array($_SESSION['user_name']))); $tplIndex->assign("index_welcome_92",formatString(LA_WELCOME_LOGGED_2, array($_SESSION['user_name']))); $tplIndex->assign("member",$_SESSION["valid_user"]); $tplIndex->assign("premium_picture",$set_premium_picture); $tplIndex->assign("set_special",$set_special); $tplIndex->assign("premium_picture",$set_premium_picture); $tplIndex->assign("set_special",$set_special); if ($set_special) { $limit=$set_premium_limit; $sql_str = "select ad_title, ad_id from $ads_tbl where ad_is_premium=1 "; if ($catid AND $set_special_categories) $sql_str.=" AND ad_cat_id=$catid"; if ($set_special_only_frontpage AND $catid) $sql_str.=" AND 2<1"; $sql_str.=" $val_string order by ad_id desc limit $limit"; $res_sp = q($sql_str); $sp_i=0; while ($row_sp=mysql_fetch_array($res_sp)) { $s_title = $row_sp["ad_title"]; $s_id = $row_sp["ad_id"]; $lSpecialAds[$sp_i]["s_title"]=dotString($s_title,$set_special_string_length); $lSpecialAds[$sp_i]["s_id"]=$s_id; $lSpecialAds[$sp_i]["s_link"]=linkDetail($s_id); $sp_i++; } $tplIndex->assign("special_list",$lSpecialAds); if ($sp_i==0) $tplIndex->assign("size","100"); else $tplIndex->assign("size","70"); } else { $tplIndex->assign("size","100"); } $tplIndex->display("index.tpl"); include_once("footer_inc.php"); ?>