0byt3m1n1-V2
Path:
/
home
/
nlpacade
/
www.OLD
/
classes
/
[
Home
]
File: acccesMap.classe.php
<?PHP class odcms_MapApi { public static function TrimTexte($string){ return trim($string); } public static function EncodeUrl($string){ return urlencode($string); } public static function HTMLentities($string){ return htmlentities($string); } public static function UTF8decode($string){ return utf8_decode($string); } public static function CombineTeste($string){ return odcms_MapApi :: TrimTexte(odcms_MapApi :: HTMLentities(odcms_MapApi :: UTF8decode($string))); } public static function GetNameClient() { $client = new RSsql('object'); $client -> setAutoFetch(TRUE); $query_client = " SELECT * FROM variable WHERE id = 11 ORDER BY id "; $nbr = $client -> select($query_client); $info = $client -> hasRecord(); return $name = $info->valeur ; } public static function GetAdresseClient() { $client = new RSsql('object'); $client -> setAutoFetch(TRUE); $query_client = " SELECT * FROM variable WHERE id = 12 ORDER BY id "; $nbr = $client -> select($query_client); $info = $client -> hasRecord(); return $adresse = $info->valeur ; } public static function GetAdresseClient2() { $client = new RSsql('object'); $client -> setAutoFetch(TRUE); $query_client = " SELECT * FROM variable WHERE id = 12 ORDER BY id "; $nbr = $client -> select($query_client); $info = $client -> hasRecord(); return $adresse = $info->valeur ; } /*tele*/ public static function GetTeleClient() { $client = new RSsql('object'); $client -> setAutoFetch(TRUE); $query_client = " SELECT * FROM variable WHERE id = 14 ORDER BY id "; ///echo $query_client; $nbr = $client -> select($query_client); $info = $client -> hasRecord(); return $adresse = $info->valeur ; } /*fax*/ public static function GetFaxClient() { $client = new RSsql('object'); $client -> setAutoFetch(TRUE); $query_client = " SELECT * FROM variable WHERE id = 16 ORDER BY id "; // echo $query_client; $nbr = $client -> select($query_client); $info = $client -> hasRecord(); return $adresse = $info->valeur ; } /*mail*/ public static function GetMailClient() { $client = new RSsql('object'); $client -> setAutoFetch(TRUE); $query_client = " SELECT * FROM variable WHERE id = 8 ORDER BY id "; $nbr = $client -> select($query_client); $info = $client -> hasRecord(); return $adresse = $info->valeur ; } /*adresse map*/ /*mail*/ public static function GetMapAdresse() { $client = new RSsql('object'); $client -> setAutoFetch(TRUE); $query_client = " SELECT * FROM variable WHERE id = 13 ORDER BY id "; $nbr = $client -> select($query_client); $info = $client -> hasRecord(); return $adresse = $info->valeur ; } /*mobile*/ public static function GetMobile() { $client = new RSsql('object'); $client -> setAutoFetch(TRUE); $query_client = " SELECT * FROM variable WHERE id = 15 ORDER BY id "; $nbr = $client -> select($query_client); $info = $client -> hasRecord(); return $adresse = $info->valeur ; } /*nom de site*/ public static function GetNameSite() { $client = new RSsql('object'); $client -> setAutoFetch(TRUE); $query_client = " SELECT * FROM variable WHERE id = 2 ORDER BY id "; $nbr = $client -> select($query_client); $info = $client -> hasRecord(); return $adresse = $info->valeur ; } /*url site*/ public static function GetUrlSite() { $client = new RSsql('object'); $client -> setAutoFetch(TRUE); $query_client = " SELECT * FROM variable WHERE id = 3 ORDER BY id "; $nbr = $client -> select($query_client); $info = $client -> hasRecord(); return $adresse = $info->valeur ; } } ?>
©
2018.