Link = mysql_connect($Host,$User,$Pass); mysql_select_db($DB,$this->Link); mysql_query("SET NAMES 'utf8'"); mysql_query("SET CHARACTER SET utf8"); mysql_query("SET COLLATION_CONNECTION = 'utf8_turkish_ci'"); if(!$this->Link)echo "Veri Tabanına Bağlanılamıyor ..."; } } class SqlProgress { function _query($Query) { return mysql_query("".$Query.""); } function _while($Query) { return mysql_fetch_array("".$Query.""); } function _insert($Query) { if (!mysql_query("insert into ".$Query."")) echo mysql_error(); } function _update($Query) { if (!mysql_query("update ".$Query."")) echo mysql_error(); } function _num_rows($Query) { return mysql_num_rows(mysql_query("".$Query."")); } function _fetch_array($Query) { return mysql_fetch_array(mysql_query("".$Query."")); } function _LastID($Table) { return mysql_fetch_array(mysql_query("Select ID from ".$Table." order by ID desc limit 1")); } function _delete($Query) { return mysql_query("delete from ".$Query.""); } function _DataKontrol($Query,$Alert) { if($this->_num_rows($Query) > 0): echo ''; exit; endif; } function _Pagers($Qery,$S,$Artim,$Order,$AscDesc,$GroupBy) { if($S!="") { $Baslangic=$S; }else{ $Baslangic=0; } if($AscDesc!="") { $AscDesc=$AscDesc; }else{ $AscDesc="desc"; } if($S=="") { $S=0; } $this->DataSay = $this->_num_rows($Qery.$GroupBy); $Limit=ceil($this->DataSay/$Artim); if($Order=="") { $Order="ID"; } $this->DataArray = $this->_query("".$Qery." $GroupBy order by $Order $AscDesc limit $Baslangic,$Artim"); $this->SayfaAdet = $S; $this->SayfaBaslangic = $Baslangic; $this->SayfaArtim = $Artim; $this->SayfaLimit = $Limit; } function _Views($Table,$ID) { $this->_update($Table." set Views=Views+1 where ID='".$ID."' or Permalink='".$ID."'"); } } new SqlConnect("localhost","gurleryilmaz_os","gurleryilmaz_os","ng0uvgZRpL"); ?> ".$DataID.""; } $NUM = $this->_num_rows("select Permalink,ID from ".$SOURCE." where Permalink='".$STR."' ".$SqlPart.""); if ($NUM<1) { $Permalink = $STR.""; }else{ $Permalink = $STR."-".rand(0,999).""; } return $Permalink; } function CreatePermalinkManual($STR,$SOURCE,$DataID) { $TR = array('ş','Ş','ı','İ','ğ','Ğ','ü','Ü','ö','Ö','Ç','ç'); $EN = array('s','s','i','i','g','g','u','u','o','o','c','c'); $STR = str_replace($TR,$EN,$STR); $STR = preg_replace('/&amp;amp;amp;amp;amp;amp;amp;amp;amp;.+?;/', '', $STR); $STR = preg_replace('/\s+/', '-', $STR); $STR = preg_replace('|-+|', '-', $STR); $STR = trim($STR, '-'); if ($DataID=="") { $SqlPart = ""; }else{ $SqlPart = "and ID<>".$DataID.""; } $NUM = $this->_num_rows("select Permalink,ID from ".$SOURCE." where Permalink='".$STR."' ".$SqlPart.""); if ($NUM<1) { $Permalink = $STR; }else{ $Permalink = $STR."-".rand(0,999); } return $Permalink; } function PLink($STR) { $TR = array('ş','Ş','ı','İ','ğ','Ğ','ü','Ü','ö','Ö','Ç','ç'); $EN = array('s','s','i','i','g','g','u','u','o','o','c','c'); $STR = str_replace($TR,$EN,$STR); $STR = preg_replace('/&amp;amp;amp;amp;amp;amp;amp;amp;amp;.+?;/', '', $STR); $STR = preg_replace('/\s+/', '-', $STR); $STR = preg_replace('|-+|', '-', $STR); $STR = trim($STR, '-'); return strtolower($STR); } } ?>_num_rows($Q); if($NUM>0) { $Data = $this->_fetch_array($Q); if($Data[$LANGUAGE]!="") { return stripslashes($Data[$LANGUAGE]); }else{ return stripslashes($STR); } }else{ $this->_insert("language set Flag='".addslashes($STR)."', TR='".addslashes($STR)."'"); return stripslashes($STR); } } } ?>IsSMTP(); $this->SMTPAuth = true; $this->Host = "mail.varien.com.tr"; $this->Port = 587; $this->Username = "no-replay@varien.com.tr"; $this->Password = "123321"; $this->From = $FROM; $this->FromName = 'Burhan TARLABAŞI'; $this->Subject = $Data[KONU]; $this->MsgHTML($Mesaj); $this->AddAddress($Data[ALICI], $Data[ALICI_ISIM]); if(!$this->Send()) { return false; }else{ return true; } } } ?>