array('ling_pt.php', '', 'pt_PT'), LING_EN=>array('ling_en.php', 'en', 'en_EN')); $objLing=new LinguagensSession('idLing', LING_EN, $lings); */ /* * Retornar url para link de mudanca de linguagem * $objLing->retUrlLing(LING_PT ou LING_EN); * Caso botao unico * $objLing->retUrlLing( $objLing->retLing()==LING_PT ? LING_EN : LING_PT); * Mudanca da img bandeira para botao unico * $imgBandeira=$objLing->retLing()==LING_PT ? 'img_bandeiraEn.jpg' : 'img_bandeiraPt.jpg'; */ $ObjMySQL = new Mysql("eduard@viaoceanica.com","http://www.viaoceanica.com",true,false); $ObjMySQL->ConnectToServer($StrDBHost,$StrDBUsername,$StrDBPassword); $ObjMySQL->SelectMyDataBase($StrDBName); $ObjSmarty = new Smarty(); $ObjText = new TextConvert; $ObjQuery = new Query; $ObjFotos = new Photo; $ObjData = new Date; $ObjEmail = new Email; if (!empty($_COOKIE['logged'])) { $StrUsername = htmlentities($_COOKIE['user_username']); $StrPassword = htmlentities($_COOKIE['user_password']); $StrTable = "utilizadores"; $StrWhere = "username='$StrUsername' AND password='$StrPassword'"; $StrSQLSelect = $ObjQuery->ListRecords($StrTable,"",$StrWhere,"",false); $ArrCheck = $ObjMySQL->RetResultArray($StrSQLSelect); if ($ArrCheck[0] < 1) { echo ""; exit(); } } /** $smtp=new smtp_class; $smtp->host_name="localhost"; $smtp->host_port=25; $smtp->ssl=0; $smtp->localhost="localhost"; $smtp->direct_delivery=0; $smtp->timeout=10; $smtp->data_timeout=0; $smtp->debug=1; $smtp->html_debug=1; $smtp->pop3_auth_host=$SiteSMTPAddress; $smtp->user=$SiteSMTPEmail; $smtp->realm=""; $smtp->password=$SiteSMTPEmailPassword; $smtp->workstation=""; $smtp->authentication_mechanism=""; * Retornar texto de campo bd ex. descricao, limpo de tags e truncado */ ?>