diff --git a/External/Starting/Autoload/MyDefines.php b/External/Starting/Autoload/MyDefines.php index e9c477f..492b9ae 100644 --- a/External/Starting/Autoload/MyDefines.php +++ b/External/Starting/Autoload/MyDefines.php @@ -1,31 +1,31 @@ orderBy('id','desc') - ->where('content_type','content','and') - ->where('lang',LANG) - ->get('content'); -} - -function user_content_list($editor){ - return DB::orderBy('id','desc')->where('content_type','content','and')->where('editor',$editor)->get('content')->result(); -} - - -function content_edit($id){ - return DB::where('id',$id)->get('content')->row(); -} - -function blog($id=null){ - if ($id) { - return DB::orderBy('id','desc') - ->where('content_type','content','and') - ->where('status','1','and') - ->where('category_id',$id) - ->get('content') - ->result(); - }else{ - return DB::orderBy('id','desc') - ->where('content_type','content','and') - ->where('status','1') - ->get('content') - ->result(); - } -} - -function blogCategory($id){ - return DB::limit(NULL,10) - ->orderBy('id','desc') - ->where('content_type','content','and') - ->where('status','1','and') - ->where('category_id',$id) - ->get('content'); -} - -function content($limit = '3'){ - return DB::orderBy('id','desc')->where('content_type','content','and')->where('status','1','and')->where('lang',LANG)->limit($limit)->get('content')->result(); -} - -function content_confirmation(){ - return DB::orderBy('id','desc')->where('content_type','content','and')->where('status','0')->limit('3')->get('content')->result(); -} - - -function contentCategory(){ - return DB::content_category()->result(); -} - -function contentCategoryRow($id){ - return DB::where('id',$id)->content_category()->row(); -} - -function contentRow($id){ - if (is_numeric($id)) { - $row = DB::where('id',$id)->get('content')->row(); - if ($row) return $row; - } - return DB::where('title_seo',$id)->get('content')->row(); -} - -function content_image($icerik) { - $resimbir = ''; - ob_start(); - ob_end_clean(); - $output = preg_match_all('//i', htmlspecialchars_decode($icerik), $matches); - if($output){$resimbir = $matches['1']['0'];} - if(empty($resimbir)){ //Eğer resim eklememişseniz - $resimbir = URL::base('upload/pisilinux_pisi.png'); - } - return $resimbir; -} - -function contentStatusAdmin($status){ - - if ($status == '0') { - $stat = ''; - }elseif($status == '1'){ - $stat = ''; - }elseif($status == '2'){ - $stat = ''.lang('Genel','banned').''; - }elseif($status == '3'){ - $stat = ''.lang('Genel','waiting_for_approval').''; - }elseif($status == '4'){ - $stat = ''.lang('Genel','solved').''; - } - - return $stat; -} - -function slider(){ - return DB::where('durum','1')->orderBy('sira','asc')->get('slider')->result(); -} - -function blogSearch($search){ - return DB::select('id','title','title_seo','content')->orderBy('id','desc')->whereLike('title', $search,'or')->whereLike('content', $search)->get('content')->result(); -} - diff --git a/Projects/Frontend/Starting/Autoload/bugs_func.php b/Projects/Frontend/Starting/Autoload/bugs_func.php deleted file mode 100644 index dfbf3b6..0000000 --- a/Projects/Frontend/Starting/Autoload/bugs_func.php +++ /dev/null @@ -1,37 +0,0 @@ -bugsResult(); - } - - function bugsRow($id){ - return DB::where('id',$id)->bugsRow(); - } - - function taskTypeName($id){ - return DB::select('tasktype')->where('id', $id)->get('tasktype')->value(); - - } - - function taskName($id){ - return DB::whereId($id)->tasktypeRowTasktype(); - } - - function taskTypeList($id = 0){ - if ($id==0) { - return DB::orderBY('id','desc')->where('contentId','0')->bugsResult(); - //return DB::orderBY('id','desc')->whereNot('status','0')->bugsResult(); - }else{ - - return DB::orderBY('id','desc')->whereAnd('tasktype',$id)->whereNot('status','0')->bugsResult(); - } - } - - function bugsResult($id){ - return DB::where('contentId',$id)->bugsResult(); - } \ No newline at end of file diff --git a/Projects/Frontend/Starting/Autoload/disable_func.php b/Projects/Frontend/Starting/Autoload/disable_func.php deleted file mode 100644 index 815452d..0000000 --- a/Projects/Frontend/Starting/Autoload/disable_func.php +++ /dev/null @@ -1,67 +0,0 @@ - json_encode(array('text' => $message))); - $c = curl_init(SLACK_WEBHOOK); - curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($c, CURLOPT_POST, true); - curl_setopt($c, CURLOPT_POSTFIELDS, $message); - curl_exec($c); - curl_close($c); -} - -function slack_invite($usermail){ - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL,"https://slack.com/api/users.admin.invite?C02NPT4MB"); - curl_setopt($ch, CURLOPT_POST, 1); - curl_setopt($ch, CURLOPT_POSTFIELDS,'email='.$usermail.'&token=xoxp-2771922705-2834958271-429249401667-ade5482f00f7fa2722526a1354d3b1f9'); - curl_setopt($ch ,CURLOPT_RETURNTRANSFER , True); - $replyRaw = curl_exec($ch); - /* - $reply=json_decode($replyRaw,true); - - if($reply['error']=='invalid_email') - { - echo '

'; - echo 'E-mail Adresini yazmayı unuttun!'; - echo '

'; - } - elseif($reply['error']=='already_in_team') - { - echo '

'; - echo 'Pisi Slack Kanalına Zaten Üyesin! Pisi Slack Kanalına Git.'; - echo '

'; - } - elseif($reply['error']=='already_invited') - { - echo '

'; - echo 'Daha önce kayıt olmuşsunuz! Lütfen Kayıt olduğunuz e-posta ile Pisi Slack Kanalına Giriş yapın.'; - echo '

'; - } - - elseif($reply['ok']==false) { - echo '

'; - echo 'Hata Oluştu, Tekrar Deneyin!'; - echo '

'; - } else - { - - echo '

'; - echo 'Başarıyla Üye oldunuz. '.$newmail.' Adresinde Davet için Mail Gönderdik. Lütfen E-mailinizi kontrol ediniz.'; - echo '

'; - - - } - -} - function gitter($message){ - $message = urlencode($message); - $ch = curl_init('https://webhooks.gitter.im/e/fbf2cac6623ba8a4ab13'); - curl_setopt ($ch, CURLOPT_POSTFIELDS,"message=$message"); - curl_exec($ch); - curl_close($ch); - } - -*/ \ No newline at end of file diff --git a/Projects/Frontend/Starting/Autoload/download_func.php b/Projects/Frontend/Starting/Autoload/download_func.php deleted file mode 100644 index d2096a2..0000000 --- a/Projects/Frontend/Starting/Autoload/download_func.php +++ /dev/null @@ -1,39 +0,0 @@ -result(); - } - - function countriesName($id){ - return DB::select('name')->where('id',$id)->countries()->value(); - } - - function downloadUrl($id){ - return DB::where('downloadId', $id,'and')->where('status','1')->downlinkResult(); - } - - function downloadUrlAdmin($id){ - return DB::where('downloadId', $id)->downlinkResult(); - } - - function downloadLast(){ - if (LANG == 'az' || LANG == 'bg' || LANG == 'de' || LANG == 'ir') { - $db = DB::where('lang','en','and')->where('status','1')->orderBy('id','desc')->downloadResult(); - }else{ - $db = DB::where('lang',LANG,'and')->where('status','1')->orderBy('id','desc')->downloadResult(); - } - return $db; - //return DB::where('lang',LANG,'and')->where('status','1')->orderBy('id','desc')->downloadResult(); - } - - function downloadEdit($id){ - return DB::where('id',$id)->download()->row(); - } - function sumx($şid){ - return DB::select('sumx')->where('downloadId',$id)->downlink()->value(); - } - - function downloadParentId($id){ - return DB::select('parentId')->where('id',$id)->download()->value(); - } \ No newline at end of file diff --git a/Projects/Frontend/Starting/Autoload/forum_func.php b/Projects/Frontend/Starting/Autoload/forum_func.php deleted file mode 100644 index b6e5455..0000000 --- a/Projects/Frontend/Starting/Autoload/forum_func.php +++ /dev/null @@ -1,151 +0,0 @@ -where('kat_ustid',$par,'and')->where('status',1)->get('forum_kat')->result(); -} - -function mesaj_sayisi($id){ - return DB::where('category_id',$id,'and')->where('content_id','0')->forum()->totalRows(); -} - -function toplam_mesaj_sayisi($id){ - return DB::where('category_id',$id)->forum()->totalRows(); -} - - -function question_category($par = '0'){ - return DB::where('status','1','and') - ->where('kat_ustid',$par) - ->forum_kat() - ->result(); -} - -function forum_kategori_adi($data){ - return DB::select('adi','kat_ustid','adi_seo')->where('id',$data)->get('forum_kat')->row(); -} - -function forumCategoryName($data){ - return DB::select('adi')->where('id',$data)->get('forum_kat')->value(); -} - -function forum_kategori_row($data){ - return DB::where('id',$data)->get('forum_kat')->row(); -} - -function iletisayisi($id){ - $s = DB::where('category_id',$id)->get('forum')->result(); - return count($s); -} - -function yazar($deg){ - return DB::select('username')->where('user_id',$deg)->get('user')->value(); -} - -function userCreateDate($deg){ - return DB::select('date')->where('user_id',$deg)->get('user')->value(); -} - -function avatar(){ - $avatar = DB::select('avatar')->where('user_id', USERID)->get('user')->value(); - return URL::base($avatar); -} - -function avatar1($userid){ - $avatar = DB::select('avatar')->where('user_id',$userid)->get('user')->value(); - if ($avatar){ - return URL::base($avatar); - }else{ - return '/img/user.png'; - } -} - -function cevaplist($deg){ - return DB::where('content_id',$deg)->orderBy('id','asc')->get('forum')->result(); -} - -function contentlist($d){ - return DB::where('content_id',$d)->count('id')->get('forum')->value(); -} - -function forum_content($d = '0'){ - return DB::orderBy('id','desc')->where('content_id',$d,'and')->where('status','1')->get('forum')->result(); -} - -function subject($d = '0'){ - return DB::where('id',$d,'and') - ->where('status','1') - ->get('forum') - ->row(); -} -function forum_kategori($par = '0'){ - return DB::where('kat_ustid',$par,'and')->where('status','1')->get('forum_kat')->result(); -} - -function forum_category($d = '0'){ - return DB::orderBy('id','desc')->where('category_id',$d,'and')->where('content_id','0')->get('forum')->result(); -} - -function sonileti($d){ - return DB::select('content')->where('content_id',$d)->orderBy('id','desc')->limit('1')->get('forum')->value(); -} - -function sonMesajlar($limit = 5){ - return DB::orderBy('id', 'desc')->where('content_id','0')->limit($limit)->get('forum')->result(); -} - -function message_count($d){ - $s = DB::where('category_id',$d)->get('forum')->result(); - foreach ($s as $key) { - $a = DB::where('content_id',$key->id)->get('forum')->result(); -echo count($a)+1; - } - $say1 = count($s); - - //return count($b); -} -function soniletiler($limit = 10){ - return DB::orderBy('id','desc')->whereNot('content_id', '0')->limit($limit)->get('forum')->result(); -} - -function forum_title($id='0'){ - return DB::select('title')->where('id',$id)->get('forum')->value(); -} - -function forum_kat(){ - return DB::where('kat_ustid',0)->get('forum_kat')->result(); -} - -function forun_alt_kat($id){ - return DB::where('kat_ustid',$id)->get('forum_kat')->result(); -} - -function end_message_userid($id){ - return DB::select('user_id')->orderBy('id','desc')->where('content_id',$id)->get('forum')->limit('1')->value(); -} - -function end_message($id){ - return DB::orderBy('id','desc')->where('content_id',$id)->get('forum')->limit('1')->row(); -} - -function end_message_insertdate($id){ - return DB::select('insertDate')->orderBy('id','desc')->where('content_id',$id)->get('forum')->limit('1')->value(); -} - -function forumSearch($search){ - return DB::select('id','title','title_seo','content','content_id')->whereLike('title', $search,'or')->whereLike('content', $search)->get('forum')->result(); -} - -function forum_content_row($id){ - return DB::where('id', $id)->get('forum')->row(); -} - -function userMessageCount($id){ - return DB::where('user_id',$id)->forum()->totalRows(); -} \ No newline at end of file diff --git a/Projects/Frontend/Starting/Autoload/rss.php b/Projects/Frontend/Starting/Autoload/rss.php deleted file mode 100644 index a0be866..0000000 --- a/Projects/Frontend/Starting/Autoload/rss.php +++ /dev/null @@ -1,40 +0,0 @@ -where('content_id','0')->limit('15')->forumResult(); - - $rss1 = ' - - - Pisi GNU/Linux forum rss - https://pisilinux.org - Pisi GNU/Linux forum rss içerikleri - turkish - - Pisi GNU/Linux - '.URL::base('upload/pisilogo/pisilogo240x71.png').' - '.URL::base('upload/pisilogo/pisilogo240x71.png').' - 240 - 71 - '; - - - foreach ($rss as $key){ - $rss1 .=' - '.$key->title.' - '.URL::base('/forum/subject/'.$key->id.'-'.$key->title).' - '.Limiter::word(html_entity_decode($key->content), 10).' - '.$key->insertDate.' - '; - } - - $rss1 .= ' - - '; -File::write('forum_son_konular_rss.xml', $rss1); -} diff --git a/Projects/Frontend/Starting/Autoload/set.php b/Projects/Frontend/Starting/Autoload/set.php deleted file mode 100644 index 130d5f8..0000000 --- a/Projects/Frontend/Starting/Autoload/set.php +++ /dev/null @@ -1,318 +0,0 @@ - -'.lang('General','passive').''; - }elseif($status === '1'){ - $stat = ''.lang('General','active').''; - }elseif($status === '2'){ - $stat = ''.lang('General','banned').''; - }elseif($status === '3'){ - $stat = ''.lang('General','waiting_for_approval').''; - }elseif($status === '4'){ - $stat = ''.lang('General','solved').''; - }elseif($status === '5'){ - $stat = ''.lang('General','solved').''; - } - - return $stat; -} - -function statusAdmin($status){ - if ($status === '0') { - $stat = ''.lang('Genel','passive').''; - }elseif($status === '1'){ - $stat = ''.lang('Genel','active').''; - }elseif($status === '2'){ - $stat = ''.lang('Genel','banned').''; - }elseif($status === '3'){ - $stat = ''.lang('Genel','waiting_for_approval').''; - }elseif($status === '4'){ - $stat = ''.lang('Genel','solved').''; - } - - return $stat; -} - - -function status1($status){ - if ($status === '1') { - $stat = ''; - }elseif($status === '0'){ - $stat = ''; - } - - return $stat; -} - - -function tcevir($tarih,$saatvarmi = '') { - $bosluk = explode(' ', $tarih); - $tr = explode("-",$bosluk['0']); - $saat = $bosluk['1']['0'].$bosluk['1']['1'].$bosluk['1']['2'].$bosluk['1']['3'].$bosluk['1']['4']; - if ($saatvarmi) { - $tarih1 = $tr['2']."-".$tr['1']."-".$tr['0'].' '.$saat; - }else{ - $tarih1 = $tr['2']."-".$tr['1']."-".$tr['0']; - } - return $tarih1; -} - -function tarih1($tarih) { - $bosluk = explode(' ', $tarih); - $tr = explode('-',$bosluk['0']); - return $bosluk[0]; -} - -function jalert($p){echo '';} -function jsetitem($p,$a){echo '';} - - -function jswal($p, $r = 'error'){echo '';} - -function jconfirm($p){echo '';} - -function ayar(){return DB::get('settings')->row();} - -function editor($sec){ - return DB::select('username')->where('user_id',$sec)->get('user')->value(); -} - - - -function katname($data){ - return DB::select('name')->where('id',$data)->content_category()->value(); -} - -function etiket($data){ - $array = explode(',',$data); - $a = ''; - foreach ($array as $key ) { - $a .= ''.$key.' '; - } - return $a; -} - -function git($link = ''){ - if($link){ - echo ''; - }else{ - echo ''; - } -} - -function seo($s) { - $tr = array('ş','Ş','ı','I','İ','ğ','Ğ','ü','Ü','ö','Ö','Ç','ç','(',')','/',':',',','.'); - $eng = array('s','s','i','i','i','g','g','u','u','o','o','c','c','','','-','-','-','-'); - $s = str_replace($tr,$eng,$s); - $s = strtolower($s); - $s = preg_replace('/&amp;amp;amp;amp;amp;amp;amp;amp;.+?;/', '', $s); - $s = preg_replace('/\s+/', '-', $s); - $s = preg_replace('|-+|', '-', $s); - $s = preg_replace('/#/', '', $s); - $s = str_replace('.', '', $s); - $s = trim($s, '-'); - return $s; -} - -function kategoriler($kat = '0',$table = 'kategoriler') { - return DB::where('kat_ustid',$kat)->get($table)->result(); -} - -function hataVarmi($p){ - if (DB::affectedRows()) { - redirect(URL::base($p)); - }else{ - jalert(DB::error()); - } -} - -function KategoriListesi($id = 0,$secim = 0,$tire = 0,$select = ''){ - $sorgu = DB::where('kat_ustid',$id)->get('kategoriler')->result(); - $se = ''; - foreach ($sorgu as $key) { - if ($key->kat_ustid == 0) { - $tire = 0; - $style = 'color:#000;font-weight:bolder;font-size:13px;'; - } - - if ($secim != $key->kat_ustid){ - $secim = $key->kat_ustid; - $style = 'color:#000'; - $tire++; - } - - if($key->id == $select){$sel = 'selected';}else{$sel='';} - - echo '"; - KategoriListesi($key->id,$secim,$tire,$select); - } -} - -function post($method,$function){ - if (method::post()) { - $this->$method->$function(method::post()); - } -} - -function yonetimKategori($selected = 0, $id = 0,$secim = 0,$tire = 0){ - - $sorgu = DB::where('kat_ustid',$id)->get('kategoriler')->result(); - - foreach ($sorgu as $key) { - - if ($key->kat_ustid == 0) {$tire = 0;$style = 'color:#000;font-weight:bolder;font-size:13px;';} - - if ($secim != $key->kat_ustid){$secim = $key->kat_ustid;$style = 'color:#000';$tire++;} - - if ($key->id == $selected) { $selected = 'selected'; } - echo '"; - - yonetimKategori($key->id,$secim,$tire); - } -} - - -function KategoriTablosu($id = 0,$secim = 0,$tire = 0){ - $sorgu = DB::where('kat_ustid',$id)->get('kategoriler')->result(); - - foreach ($sorgu as $key) { - - if ($key->kat_ustid == 0) { - $tire = 0; - $style = 'color:#000;font-weight:bolder;font-size:13px;'; - } - - if ($secim != $key->kat_ustid){ - $secim = $key->kat_ustid; - $style = 'color:#000'; - $tire++; - } - - $duzenle = URL::base('panel/category/edit/'.$key->id); - $sil = URL::base('panel/category/delete/'.$key->id); - - echo ' - - '.str_repeat('- ',$tire).$key->adi.' - '.$key->aciklama.' - - - - - '; - KategoriTablosu($key->id,$secim,$tire); - } -} - -function kelimebol($metin, $karaktersayisi){ - $icerik = htmlspecialchars_decode($metin); - $icerik = strip_tags($icerik); - $icerik = str_replace(array("\t","\r","\n"), ' ',$icerik); - $icerik_bol = explode(' ', $icerik); // metini bosluklara gore bolduk - $icerik = ''; - for($i = 0; $i < count($icerik_bol); $i++) { - if ($icerik_bol[$i] != '') // veri yok mu? Atla, varsa ekle - $icerik .= trim($icerik_bol[$i]).' '; - } - - if( preg_match('/(.*?)\s/i', substr($icerik, $karaktersayisi), $dizi) ) - return $icerik = substr($icerik, 0, $karaktersayisi+strlen($dizi[0])); -} - - -function authority($id){ - $user = DB::where('user_id',$id)->get('user')->row(); - - return DB::where('id',$user->authority)->get('authority')->row(); -} - -function setting($row){ - return DB::select('value')->where('title',$row)->get('settings')->value(); -} - -function settings($key){ - return DB::select('value')->where('title',$key)->settings()->Value(); - } - - -/* -function view($deg = ''){ - return import::view($deg); -} -*/ -function selected($id1, $id2){ - if ($id1 == $id2){echo 'selected';} -} - -function checked($id1, $id2){ - if ($id1 == $id2){echo 'checked';} -} - - -function linkcleaner($text){ - return preg_replace('/(.*?)<\/a>/', "\\4", $text); -} - -function theme_list(){ - return Folder::files('Projects/Frontend/Views/'); -} - -function logo_list(){ - return Folder::files('img/logo/'); -} - -function favicon_list(){ - return Folder::files('img/fav/'); -} - -function decode($deger){ echo htmlspecialchars_decode($deger);}//decode -function decode1($deger){ return htmlspecialchars_decode($deger);}//decode - -function flag($slug){ - - $flag = DB::select('flag')->where('slug',$slug)->language()->value(); - return URL::base($flag); - -} \ No newline at end of file diff --git a/Projects/Frontend/Starting/Autoload/system.php b/Projects/Frontend/Starting/Autoload/system.php deleted file mode 100644 index 22c4d12..0000000 --- a/Projects/Frontend/Starting/Autoload/system.php +++ /dev/null @@ -1,407 +0,0 @@ -kategoriler()->result(); -} - -function content_category(){return DB::where('lang',LANG,'and')->where('parentId',0)->content_category()->result();} - -function contentListAdmin($lang = 'tr'){ - return DB::orderBy('id','desc') - ->where('content_type','content','and') - ->where('lang',$lang) - ->get('content') - ->result(); -} - -/* Functions Content */ -function pageList($lang = 'tr'){ - return DB::orderBy('title','asc') - ->where('content_type','page','and') - ->where('lang', $lang) - ->get('content')->result(); -} - -function pageEdit($id){ - return DB::where('id',$id)->get('content')->row(); -} - - -function duyuru(){ - return DB::where('status','1')->duyuruRow(); -} - -function duyuruRow($id){ - return DB::Where('id',$id)->duyuruRow(); - } - -function etiketler(){ - $par = DB::select('icerik_tag')->get('content')->result(); - $a = '';$b=''; - foreach ($par as $key ) { - $a .= $key->icerik_tag.','; - } - - $new = explode(',',$a); - return array_unique($new); - -} - - -/* End Functions Content */ -function telegram1($messaggio) { - $url = "https://api.telegram.org/bot889222363:AAF-kRBifC2lt9Yvv6mUqEuu1h0f7vIYhhA/sendMessage?forum_topic_created_name=-testkonu"; - $url = $url . "&text=" . urlencode($messaggio); - $ch = curl_init(); - $optArray = array( - CURLOPT_URL => $url, - CURLOPT_RETURNTRANSFER => true - ); - curl_setopt_array($ch, $optArray); - $result = curl_exec($ch); - curl_close($ch); -} - -function telegram($messaggio) { - //echo "Mesaj Gönderiliyor.. -1001464176086\n"; - $url = "https://api.telegram.org/bot889222363:AAF-kRBifC2lt9Yvv6mUqEuu1h0f7vIYhhA/sendMessage?chat_id=-1001464176086"; - $url = $url . "&text=" . urlencode($messaggio); - $ch = curl_init(); - $optArray = array( - CURLOPT_URL => $url, - CURLOPT_RETURNTRANSFER => true - ); - curl_setopt_array($ch, $optArray); - $result = curl_exec($ch); - curl_close($ch); -} - -function translate($data){echo ML::select($data);} - -function lang($langFile, $langParam){ - return Lang::select($langFile, $langParam); -} - - -function loginControl($deg='Panel'){ - if(!Session::select('login')){ - redirect('home/login'); - } -} - -function reCaptcha($response){ - $fileds = [ - 'secret' => "6Lc2qXwUAAAAAGfGK29-85EpV72saCoGwDUvwJv2", - 'response' => $response - ]; - - $ch = curl_init('https://www.google.com/recaptcha/api/siteverify'); - curl_setopt_array($ch, [ - CURLOPT_POST => true, - CURLOPT_POSTFIELDS => http_build_query($fileds), - CURLOPT_RETURNTRANSFER => true - ]); - - $result = curl_exec($ch); - curl_close($ch); - return json_decode($result,true); -} - -function member_role($id){ - return DB::select('authority')->where('id',$id)->get('authority')->value(); - -} - -function authority_list(){ - return DB::get('authority')->result(); -} - - -function category_name($id){ - return DB::select('adi')->where('id',$id)->get('kategoriler')->value(); -} - -function galeryCategory(){ - return DB::get('galeryCategory')->result(); -} - - - -function languageList(){ - return DB::orderBy('sirala','asc')->language()->result(); -} - -function langList(){ - return DB::orderBy('sirala','asc')->language()->result(); -} - -function langRow($id){ - return DB::where('id',$id)->language()->row(); -} - -/* MENU FUNCTIONS */ -function menuList($menuCatId=''){ - return DB::where('menuCatId',$menuCatId)->menuResult(); -} - -function menuListAdmin($subMenuId ='0'){ - return DB::where('subMenuId',$subMenuId)->menuResult(); -} - -function menuCatList(){ - return DB::menucat()->result(); -} - -function menuCatName($id){ - return DB::where('id',$id)->menucat()->value('name'); -} - - -function menu($data){ - $catid = DB::where('name', $data)->menucat()->value('id'); - - $menu = DB::where('menuCatId', $catid, 'and')->where('lang', LANG)->menu()->result(); - - foreach ($menu as $item) { - // Sadece http:// veya https:// ile BAŞLAMIYORSA base URL ekle - if (!preg_match('/^(https?:\/\/)/i', $item->link)) { - $item->link = URL::base() . ltrim($item->link, '/'); - } - } - - return $menu; -} - -function menu1($menuCatId){ - return DB::where('menuCatId', $menuCatId,'and')->where('lang',LANG)->menu()->result(); -} - -function menuRow($id){ - return DB::where('id',$id)->menu()->row(); -} - -/* END MENU FUNCTIONS */ -function userRow($id){ - return DB::where('user_id',$id)->get('user')->row(); -} - -function activeUserCount(){ - return DB::where('status','1')->get('user')->totalRows(); -} - -function disableMemberCount(){ - return DB::where('status','2')->get('user')->totalRows(); -} - -function pendingMemberCount(){ - return DB::where('status','0')->get('user')->totalRows(); -} - -function username($id){ - return DB::select('username')->where('user_id',$id)->get('user')->value(); -} - -function userId($username){ - return DB::select('user_id')->whereLike('username',$username)->get('user')->value(); -} - -function userStatus($id){ - return DB::select('status')->where('user_id',$id)->get('user')->value(); -} - -function userList(){ - return DB::orderBy('username','asc')->where('status',1)->get('user')->limit('10')->result(); -} - - - -function contentStatus($id){ - return DB::select('status')->where('value',$id, 'and')->where('lang',LANG)->contentStatus()->value(); -} - - - -/* functions Meagges*/ -function messsageCount($userid){ - return DB::where('userId',$userid,'and')->where('status','0')->messages()->totalRows('TRUE'); -} - -function messageList($userid){ - return DB::where('userId',$userid)->messages()->result(); -} - - - -function messageListAdmin(){ - return DB::where('admin','1')->messages()->result(); -} - -function messageRow($id){ - return DB::where('id',$id)->messages()->row(); -} - -function messageStatus($status){ - if ($status == 1) { - echo ''; - }else{ - echo ''; - } -} - -/* End Functions Meagges*/ - function curl($url, $post = NULL) - { - $http_header = array( - "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", - "Accept-Language:tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4,id;q=0.2,ru;q=0.2,ar;q=0.2,fa;q=0.2", - "Cache-Control:max-age=0", - "Upgrade-Insecure-Requests:1", - ); - $ch = curl_init(); - curl_setopt_array($ch, array( - CURLOPT_URL => $url, - CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36", - CURLOPT_RETURNTRANSFER => TRUE, - CURLOPT_FOLLOWLOCATION => TRUE, - CURLOPT_ENCODING => "", - CURLOPT_SSL_VERIFYPEER => FALSE, - CURLOPT_SSL_VERIFYHOST => FALSE, - CURLOPT_MAXREDIRS => 3, - CURLOPT_HTTPHEADER => $http_header, - )); - if (isset($post)) { - curl_setopt_array($ch, array( - CURLOPT_POST => TRUE, - CURLOPT_POSTFIELDS => $post, - CURLOPT_HTTPHEADER => array_merge($http_header, array( - "Expect: ", - )), - )); - } - $content = curl_exec($ch); - $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); - $http_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); - curl_close($ch); - return (object)array( - "http_code" => $http_code, - "http_url" => $http_url, - "content" => $content, - ); - } - - -// Üyelik onayı e-posta şablonu -function emailActivationTemplate($username, $rnd) { - return " - - - - - - Üyelik Onayı - - -
-
-

Pisi GNU / Linux

-

Üyelik Onayı

-
- -
-

- Merhaba $username, -

-

- Sitemize kayıt olduğunuz için teşekkür ederiz. Üyeliğinizi aktif etmek için aşağıdaki butona tıklayın: -

-
- - - -
-

- Alternatif: Eğer buton çalışmazsa, şu bağlantıyı tarayıcınıza kopyalayın:
- https://pisilinux.org/member/aktivizasyon/$rnd -

-
- -
-

- Ayrıca Telegram kanalımızda da sizi aramızda görmekten memnuniyet duyarız. -

-

- Bu e-posta otomatik olarak gönderilmiştir, lütfen cevaplamayınız. -

-
- -
-

- ". date("Y") ." Pisi GNU / Linux. Tüm hakları saklıdır. -

-
-
- -"; -} - -// Şifre kurtarma e-posta şablonu -function emailPasswordResetTemplate($rnd) { - return " - - - - - - Şifre Kurtarma - - -
-
-

Pisi GNU / Linux

-

Şifre Kurtarma

-
- -
-

- Merhaba, -

-

- Şifrenizi kurtarmak için aşağıdaki butona tıklayarak yeni şifrenizi belirleyebilirsiniz: -

-
- - - -
-

- Alternatif: Eğer buton çalışmazsa, şu bağlantıyı tarayıcınıza kopyalayın:
- https://pisilinux.org/member/yenisifre/$rnd -

-
- -
-

- Bu e-posta otomatik olarak gönderilmiştir, lütfen cevaplamayınız.
- Şifrenizi değiştirmediyseniz bu e-postayı görmezden gelebilirsiniz. -

-
- -
-

- ". date("Y") ." Pisi GNU / Linux. Tüm hakları saklıdır. -

-
-
- -"; -} diff --git a/Projects/Frontend/Starting/Autoload/wiki_func.php b/Projects/Frontend/Starting/Autoload/wiki_func.php deleted file mode 100644 index 9394ed7..0000000 --- a/Projects/Frontend/Starting/Autoload/wiki_func.php +++ /dev/null @@ -1,85 +0,0 @@ -where('id',$data)->get('wiki_kat')->value(); -} - -function wikiCategory($kat = '30') { - return DB::where('kat_ustid',$kat)->get('wiki_kat')->result(); -} - -function wikiMenu($menuCatId){ - return DB::where('menuCatId', $menuCatId,'and')->where('lang',LANG)->menu()->result(); -} - -function wikicontent(){ - return DB::orderBy('id','desc')->where('durum','1','and')->where('lang', LANG)->limit('3')->get('wiki')->result(); -} - -function wikicontentAdmin(){ - return DB::orderBy('baslik','asc')->where('durum','1','and')->where('lang', LANG)->get('wiki')->result(); -} - - -function wikiCategoryName($id){ - return DB::select('adi')->where('id',$id)->get('wiki_kat')->value(); -} - -function wiki_confirmation_content(){ - return DB::where('durum','3')->wiki()->result(); -} - -function wiki_update_content(){ - return DB::where('durum','3')->wiki()->result(); -} - -function wikiContentRow($id){ - return DB::where('id',$id,'and') - ->where('durum','1','and') - ->wiki() - ->row(); -} - -function wikiContentRowAdmin($id){ - return DB::where('id',$id) - ->wiki() - ->row(); -} - -function wikiUpdateRow($id){ - return DB::where('id',$id) - ->wiki_update() - ->row(); -} - - -function WikiCategoryList($id){ - return DB::orderBy('id','desc') - ->where('katid',$id,'and') - ->where('durum','1', 'and') - ->where('lang', LANG) - ->wikiResult(); - -} - -function wikiStatus($value){ - return DB::select('status')->where('value',$value)->get('status')->value(); -} - -function wikiSearch($search){ - return DB::select('id','baslik','baslik_seo','detay')->orderBy('id','desc')->whereLike('baslik', $search,'or')->whereLike('detay', $search)->get('wiki')->result(); -} - -function wikiContentCountByCategoryLink($link) { - preg_match('/\/wiki\/category\/(\d+)/', $link, $matches); - if (!isset($matches[1])) return 0; - return DB::where('katid', $matches[1], 'and') - ->where('durum', '1', 'and') - ->where('lang', LANG) - ->get('wiki') - ->totalRows(); -} - -/* End Functions Wiki */ \ No newline at end of file diff --git a/Projects/Frontend/Views/Sections/body.wizard.php b/Projects/Frontend/Views/Sections/body.wizard.php deleted file mode 100644 index 9b30e84..0000000 --- a/Projects/Frontend/Views/Sections/body.wizard.php +++ /dev/null @@ -1 +0,0 @@ -@view \ No newline at end of file diff --git a/Projects/Frontend/Views/Sections/head.wizard.php b/Projects/Frontend/Views/Sections/head.wizard.php deleted file mode 100644 index f99357e..0000000 --- a/Projects/Frontend/Views/Sections/head.wizard.php +++ /dev/null @@ -1 +0,0 @@ -@style('https://fonts.googleapis.com/css?family=Sarpanch', 'style') \ No newline at end of file