@include("connexion.inc.php"); @include("ressources.inc.php"); @logger("FOLV2"); @session_start(); if ((isset($_SESSION["session"]))&&(@session_id()==$_SESSION["session"])){ unset($_SESSION); @session_unset(); @session_destroy(); } $cnn = mssql_connect("127.0.0.1,1433", "WEB", "WEBABACOM2011"); if (mssql_select_db("PHPBB")){ $requser = "SELECT top 1 user_id, username, convert(varchar, date_cc, 103), Left(convert(varchar, date_cc, 108), 5) FROM phpbb_users, [fretonline].[dbo].[tiers] as Tiers WHERE user_id <> -1 And Tiers.Code = UserName ORDER BY user_id DESC"; $resuser = mssql_query($requser, $cnn); if ($resuser){ $rowuser = mssql_fetch_row($resuser); $lastuser = $rowuser[1]; $userdate = $rowuser[2]; $usertime = $rowuser[3]; mssql_free_result($resuser); } $reqcount = "SELECT Max(User_id)-1 FROM phpbb_users"; $rescount = mssql_query($reqcount, $cnn); if ($rescount){ $rowcount = mssql_fetch_row($rescount); $usercount = $rowcount[0]; mssql_free_result($rescount); } mssql_close($cnn); } if (($_GET["lng"]!="")||(isset($_GET["lng"]))) $_SESSION["langue"] = $_GET["lng"]; if ((!isset($_SESSION["langue"]))||($_SESSION["langue"]=="")) $_SESSION["langue"]="FR"; $res_index = getressourcearray("index.php", // array( "res_1vrut", "res_1vrut_des", // "res_2vnspvi", // "res_2vnspvi_des", // "res_3vadqrat", // "res_3vadqrat_des", "res_4veutout", "res_4veutout_des", // "res_5faq", "res_6news", "res_7cgu", "res_dernier_mi", "res_espace_pub" // ), // array( "res_1vrut"=>"Vous recherchez un transporteur :" ,// "res_1vrut_des"=>"Inscrivez-vous gratuitement puis emettez gratuitement vos demandes de devis de transport aux transporteurs aptes à effectuer vos transports." ,// "res_2vnspvi"=>"Vous ne souhaitez pas vous inscrire :", // "res_2vnspvi_des"=>"Consultez notre annuaire, ou la liste de nos sponsors.", // "res_3vadqrat"=>"Vous avez des questions relatives au transport :",// "res_3vadqrat_des"=>"Accédez au « Forum Transport »",// "res_4veutout"=>"Vous êtes transporteur ou transitaire :", // "res_4veutout_des"=>"Et vous souhaitez recevoir les demandes de devis, inscrivez-vous", "res_5faq"=>"FAQ - Les questions les plus fréquemment posées :", // "res_6news"=>"Les News :", "res_7cgu"=>"Convention d'utilisation", "res_dernier_mi"=>"Dernier membre inscrit", "res_espace_pub"=>"Espace Publicitaire" ), $_SESSION["langue"]); $res_apfr = getressourcearray("apropos.php", // array( "res_p1a", // "res_p2a" ), // array( "res_p1a"=>" ", // "res_p2a"=>" " ), // "FR"); $res_apgb = getressourcearray("apropos.php", // array( "res_p1a", // "res_p2a" ), // array( "res_p1a"=>" ", // "res_p2a"=>" " ), // "GB"); $res_apit = getressourcearray("apropos.php", // array( "res_p1a", // "res_p2a" ), // array( "res_p1a"=>" ", // "res_p2a"=>" " ), // "IT"); $res_apsp = getressourcearray("apropos.php", // array( "res_p1a", // "res_p2a" ), // array( "res_p1a"=>" ", // "res_p2a"=>" " ), // "SP"); $res_appt = getressourcearray("apropos.php", // array( "res_p1a", // "res_p2a" ), // array( "res_p1a"=>" ", // "res_p2a"=>" " ), // "PT"); $res_apde = getressourcearray("apropos.php", // array( "res_p1a", // "res_p2a" ), // array( "res_p1a"=>" ", // "res_p2a"=>" " ), // "DE"); ?>