From c3c68ebc1b89023fe5a04945a5bf9d1cbbef1143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkan=20I=C5=9EIK?= Date: Thu, 2 Jul 2026 08:16:19 +0300 Subject: [PATCH] move files and delete files --- External/Starting/Autoload/MyDefines.php | 31 ++ External/Starting/Autoload/blog.php | 107 +++++ External/Starting/Autoload/bugs_func.php | 37 ++ External/Starting/Autoload/disable_func.php | 67 +++ External/Starting/Autoload/download_func.php | 39 ++ External/Starting/Autoload/forum_func.php | 151 +++++++ External/Starting/Autoload/rss.php | 40 ++ External/Starting/Autoload/set.php | 318 ++++++++++++++ External/Starting/Autoload/system.php | 407 ++++++++++++++++++ External/Starting/Autoload/wiki_func.php | 85 ++++ Projects/Blog/Controllers/Page.php | 37 ++ .../Blog/Views/pisiV4/Page/main.wizard.php | 31 ++ Projects/Blog/map.php | 2 + .../Resources/Files/captcha-KDzdS.png | Bin 0 -> 365 bytes Settings1/.htaccess | 5 + Settings1/CDNLinks.php | 135 ++++++ Settings1/Expressions.php | 114 +++++ Settings1/Htaccess.php | 116 +++++ Settings1/Ini.php | 61 +++ Settings1/Projects.php | 53 +++ Settings1/Robots.php | 39 ++ Settings1/Security.php | 19 + 22 files changed, 1894 insertions(+) create mode 100644 External/Starting/Autoload/MyDefines.php create mode 100644 External/Starting/Autoload/blog.php create mode 100644 External/Starting/Autoload/bugs_func.php create mode 100644 External/Starting/Autoload/disable_func.php create mode 100644 External/Starting/Autoload/download_func.php create mode 100644 External/Starting/Autoload/forum_func.php create mode 100644 External/Starting/Autoload/rss.php create mode 100644 External/Starting/Autoload/set.php create mode 100644 External/Starting/Autoload/system.php create mode 100644 External/Starting/Autoload/wiki_func.php create mode 100644 Projects/Blog/Controllers/Page.php create mode 100644 Projects/Blog/Views/pisiV4/Page/main.wizard.php create mode 100644 Projects/Frontend/Resources/Files/captcha-KDzdS.png create mode 100644 Settings1/.htaccess create mode 100644 Settings1/CDNLinks.php create mode 100644 Settings1/Expressions.php create mode 100644 Settings1/Htaccess.php create mode 100644 Settings1/Ini.php create mode 100644 Settings1/Projects.php create mode 100644 Settings1/Robots.php create mode 100644 Settings1/Security.php diff --git a/External/Starting/Autoload/MyDefines.php b/External/Starting/Autoload/MyDefines.php new file mode 100644 index 0000000..e9c477f --- /dev/null +++ b/External/Starting/Autoload/MyDefines.php @@ -0,0 +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/External/Starting/Autoload/bugs_func.php b/External/Starting/Autoload/bugs_func.php new file mode 100644 index 0000000..dfbf3b6 --- /dev/null +++ b/External/Starting/Autoload/bugs_func.php @@ -0,0 +1,37 @@ +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/External/Starting/Autoload/disable_func.php b/External/Starting/Autoload/disable_func.php new file mode 100644 index 0000000..815452d --- /dev/null +++ b/External/Starting/Autoload/disable_func.php @@ -0,0 +1,67 @@ + 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/External/Starting/Autoload/download_func.php b/External/Starting/Autoload/download_func.php new file mode 100644 index 0000000..d2096a2 --- /dev/null +++ b/External/Starting/Autoload/download_func.php @@ -0,0 +1,39 @@ +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/External/Starting/Autoload/forum_func.php b/External/Starting/Autoload/forum_func.php new file mode 100644 index 0000000..b6e5455 --- /dev/null +++ b/External/Starting/Autoload/forum_func.php @@ -0,0 +1,151 @@ +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/External/Starting/Autoload/rss.php b/External/Starting/Autoload/rss.php new file mode 100644 index 0000000..a0be866 --- /dev/null +++ b/External/Starting/Autoload/rss.php @@ -0,0 +1,40 @@ +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/External/Starting/Autoload/set.php b/External/Starting/Autoload/set.php new file mode 100644 index 0000000..130d5f8 --- /dev/null +++ b/External/Starting/Autoload/set.php @@ -0,0 +1,318 @@ + +'.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/External/Starting/Autoload/system.php b/External/Starting/Autoload/system.php new file mode 100644 index 0000000..22c4d12 --- /dev/null +++ b/External/Starting/Autoload/system.php @@ -0,0 +1,407 @@ +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/External/Starting/Autoload/wiki_func.php b/External/Starting/Autoload/wiki_func.php new file mode 100644 index 0000000..9394ed7 --- /dev/null +++ b/External/Starting/Autoload/wiki_func.php @@ -0,0 +1,85 @@ +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/Blog/Controllers/Page.php b/Projects/Blog/Controllers/Page.php new file mode 100644 index 0000000..4433a75 --- /dev/null +++ b/Projects/Blog/Controllers/Page.php @@ -0,0 +1,37 @@ +hits + 1; + DB::where('id', $id)->update('content',['hits' => $hits]); + Cookie::time(60 * 60 * 24)->insert('contentid',$id); + } + + Masterpage::title($row->title); + Masterpage::meta + ([ + 'name:description' => $row->keywords, + 'name:keywords' => $row->label + ]); + + define('TITLE',$row->title); + define('LINK',URL::base("content/$id-".$row->title_seo)); + define('DESC',$row->keywords); + define('IMG',content_image($row->content)); + + view::id($id); + } +} + diff --git a/Projects/Blog/Views/pisiV4/Page/main.wizard.php b/Projects/Blog/Views/pisiV4/Page/main.wizard.php new file mode 100644 index 0000000..24f34af --- /dev/null +++ b/Projects/Blog/Views/pisiV4/Page/main.wizard.php @@ -0,0 +1,31 @@ +
+
+
+
+

{{contentRow($id)->title}}

+ + +
+ +
+ {{contentRow($id)->content}} +
+ +
+ +
+ Paylaşın: +
+ + + + + + +
+
+
+
+ +
+
\ No newline at end of file diff --git a/Projects/Blog/map.php b/Projects/Blog/map.php index acdf0a1..fc29e9b 100644 --- a/Projects/Blog/map.php +++ b/Projects/Blog/map.php @@ -12,3 +12,5 @@ $classMap['classes']['project\controllers\content'] = 'Projects/Blog/Controllers $classMap['namespaces']['project\controllers\content'] = 'content'; $classMap['classes']['project\controllers\category'] = 'Projects/Blog/Controllers/Category.php'; $classMap['namespaces']['project\controllers\category'] = 'category'; +$classMap['classes']['project\controllers\page'] = 'Projects/Blog/Controllers/Page.php'; +$classMap['namespaces']['project\controllers\page'] = 'page'; diff --git a/Projects/Frontend/Resources/Files/captcha-KDzdS.png b/Projects/Frontend/Resources/Files/captcha-KDzdS.png new file mode 100644 index 0000000000000000000000000000000000000000..87aae210529746cd9db2027b11cf4391b1388ceb GIT binary patch literal 365 zcmeAS@N?(olHy`uVBq!ia0vp^Q9!K0!2~2fDpbt}Qk(@Ik;M!Qd`Cc-ajG_-Gy?;p zyr+v}NJit^S$lb#4Fp>II|?sNJZHVZV_QPI&LO^%g{O6{Xa=mQPVW)<&msPPHA8g! z-$Z+^7k9RB{=C?I;`!GdRT91h_51R}`xol2U|zu2V8!r?0gchH&tq!oOxKix#uS^WxQsJ%O2izACd%n$MCwxpTsXHClldUcx + [ + 'jquery' => 'https://code.jquery.com/jquery-latest.js', + 'jqueryUi' => 'https://code.jquery.com/ui/1.11.3/jquery-ui.js', + 'jqueryValidator' => 'https://cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js', + 'bootstrap' => 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js', + 'bootstrap4' => 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js', + 'bootlint' => 'https://maxcdn.bootstrapcdn.com/bootlint/0.14.1/bootlint.min.js', + 'angular' => 'https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js', + 'react' => 'https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react.min.js', + 'vue' => 'https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.3/vue.min.js', + 'datatables' => 'https://cdn.datatables.net/1.10.15/js/jquery.dataTables.min.js', + 'autoFillDatatables' => 'https://cdn.datatables.net/autofill/2.2.0/js/dataTables.autoFill.min.js', + 'buttonsDatatables' => 'https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js', + 'columnVisibilityDatatables' => 'https://cdn.datatables.net/buttons/1.3.1/js/buttons.colVis.min.js', + 'flashButtonsDatatables' => 'https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js', + 'html5ButtonsDatatables' => 'https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js', + 'printButtonDatatables' => 'https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js', + 'columnReorderDatatables' => 'https://cdn.datatables.net/colreorder/1.3.3/js/dataTables.colReorder.min.js', + 'fixedColumnsDatatables' => 'https://cdn.datatables.net/fixedcolumns/3.2.2/js/dataTables.fixedColumns.min.js', + 'fixedHeaderDatatables' => 'https://cdn.datatables.net/fixedheader/3.1.2/js/dataTables.fixedHeader.min.js', + 'keyTableDatatables' => 'https://cdn.datatables.net/keytable/2.2.1/js/dataTables.keyTable.min.js', + 'responsiveDatatables' => 'https://cdn.datatables.net/responsive/2.1.1/js/dataTables.responsive.min.js', + 'rowGroupDatatables' => 'https://cdn.datatables.net/rowgroup/1.0.0/js/dataTables.rowGroup.min.js', + 'rowReorderDatatables' => 'https://cdn.datatables.net/rowreorder/1.2.0/js/dataTables.rowReorder.min.js', + 'scrollerDatatables' => 'https://cdn.datatables.net/scroller/1.4.2/js/dataTables.scroller.min.js', + 'selectDatatables' => 'https://cdn.datatables.net/select/1.2.2/js/dataTables.select.min.js', + 'morris' => 'https://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.min.js', + 'raphael' => 'https://cdnjs.cloudflare.com/ajax/libs/raphael/2.2.7/raphael.js', + 'select2' => 'https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js', + 'flexSlider' => 'https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.3/jquery.flexslider.js', + 'ace' => 'https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.6/ace.js', + 'sweetAlert' => 'https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js', + 'dropzone' => 'https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.2.0/min/dropzone.min.js', + 'tinymce' => 'https://cloud.tinymce.com/stable/tinymce.min.js' + ], + + /* + |-------------------------------------------------------------------------- + | Styles + |-------------------------------------------------------------------------- + | + | CDN CSS links. + | + | It can be used with the Import::style() method. + | + | Example: Import::style('bootstrap', 'awesome'); + | + */ + + 'styles' => + [ + 'bootstrap' => 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css', + 'bootstrap4' => 'https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css', + 'awesome' => 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', + 'datatables' => 'https://cdn.datatables.net/1.10.15/css/jquery.dataTables.min.css', + 'autoFillDatatables' => 'https://cdn.datatables.net/autofill/2.2.0/css/autoFill.dataTables.min.css', + 'buttonsDatatables' => 'https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css', + 'columnReorderDatatables' => 'https://cdn.datatables.net/colreorder/1.3.3/css/colReorder.dataTables.min.css', + 'fixedColumnsDatatables' => 'https://cdn.datatables.net/fixedcolumns/3.2.2/css/fixedColumns.dataTables.min.css', + 'fixedHeaderDatatables' => 'https://cdn.datatables.net/fixedheader/3.1.2/css/fixedHeader.dataTables.min.css', + 'keyTableDatatables' => 'https://cdn.datatables.net/keytable/2.2.1/css/keyTable.dataTables.min.css', + 'responsiveDatatables' => 'https://cdn.datatables.net/responsive/2.1.1/css/responsive.dataTables.min.css', + 'rowGroupDatatables' => 'https://cdn.datatables.net/rowgroup/1.0.0/css/rowGroup.dataTables.min.css', + 'rowReorderDatatables' => 'https://cdn.datatables.net/rowreorder/1.2.0/css/rowReorder.dataTables.min.css', + 'scrollerDatatables' => 'https://cdn.datatables.net/scroller/1.4.2/css/scroller.dataTables.min.css', + 'selectDatatables' => 'https://cdn.datatables.net/select/1.2.2/css/select.dataTables.min.css', + 'morris' => 'https://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css', + 'datepicker' => 'https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css', + 'select2' => 'https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css', + 'flexSlider' => 'https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.3/flexslider.css', + 'sweetAlert' => 'https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css', + 'dropzone' => 'https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.2.0/min/dropzone.min.css' + ], + + /* + |-------------------------------------------------------------------------- + | Fonts + |-------------------------------------------------------------------------- + | + | CDN Font links. + | + | It can be used with the CDN::font() method. + | + | Example: CDN::font('robotic'); + | + */ + + 'fonts' => [], + + /* + |-------------------------------------------------------------------------- + | Images + |-------------------------------------------------------------------------- + | + | CDN Image links. + | + | It can be used with the CDN::image() method. + | + | Example: CDN::image('wallpaper'); + | + */ + + 'images' => [], + + /* + |-------------------------------------------------------------------------- + | Files + |-------------------------------------------------------------------------- + | + | CDN Files links. + | + | It can be used with the CDN::file() method. + | + | Example: CDN::file('note'); + | + */ + + 'files' => [] +]; diff --git a/Settings1/Expressions.php b/Settings1/Expressions.php new file mode 100644 index 0000000..3e78f4e --- /dev/null +++ b/Settings1/Expressions.php @@ -0,0 +1,114 @@ + + [ + '{id}' => '[0-9]+' + ], + + /* + |-------------------------------------------------------------------------- + | Symbols + |-------------------------------------------------------------------------- + | + | You can create usable expressions with the Symbol library. + | + | Example: Symbol::sum() + | + */ + + 'symbols' => + [ + 'sum' => '∑', // ∑ + 'empty' => '∅' // ∅ + ], + + /* + |-------------------------------------------------------------------------- + | Mimem Types + |-------------------------------------------------------------------------- + | + | You can create new types of mime that are available with Mime library. + | + | Example: Mime::xlsxx() + | + */ + + 'mimeTypes' => [], + + /* + |-------------------------------------------------------------------------- + | Accent Chars + |-------------------------------------------------------------------------- + | + | You can specify the characters you want to be converted with the + | Converter::accent() method. + | + */ + + 'accentChars' => + [ + 'œ' => 'oe', + 'ü' => 'u' + ], + + /* + |-------------------------------------------------------------------------- + | Different Font Extensions + |-------------------------------------------------------------------------- + | + | Default fonts SVG, WOFF, EOT, OTF, TTF. You can also specify types that + | can be called with the Import::font() method. + | + */ + + 'differentFontExtensions' => [], + + /* + |-------------------------------------------------------------------------- + | Document Types + |-------------------------------------------------------------------------- + | + | Apart from the built-in document type, you can add the document type + | yourself. You can use these definitions with Masterpage. + | + */ + + 'doctypes' => [], + + /* + |-------------------------------------------------------------------------- + | Date Languages + |-------------------------------------------------------------------------- + | + | Language equivalents for the Date class, depending on the language. + | + */ + + 'date' => + [ + 'tr' => + [ + 'months' => ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'], + 'shortMonths' => ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'], + 'weekdays' => ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'], + 'shortWeekdays' => ['Paz', 'Pts', 'Sal', 'Çar', 'Per', 'Cum', 'Cts'] + ], + 'en' => + [ + 'months' => ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], + 'shortMonths' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + 'weekdays' => ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], + 'shortWeekdays' => ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] + ] + ] +]; diff --git a/Settings1/Htaccess.php b/Settings1/Htaccess.php new file mode 100644 index 0000000..e373093 --- /dev/null +++ b/Settings1/Htaccess.php @@ -0,0 +1,116 @@ + true, + + /* + |-------------------------------------------------------------------------- + | Headers + |-------------------------------------------------------------------------- + | + | Predefined HTTP header submissions are defined in the system. + | + */ + + 'headers' => + [ + 'Header set Connection keep-alive' + ], + + /* + |-------------------------------------------------------------------------- + | INI + |-------------------------------------------------------------------------- + | + | Contains settings related to ini. + | + | status: If this value is true, the changes are processed in + | the .htaccess file. + | + */ + + 'ini' => + [ + 'status' => true, + ], + + /* + |-------------------------------------------------------------------------- + | Settings + |-------------------------------------------------------------------------- + | + | It is used to manipulate the .htaccess file. + | Note: Edit the .htaccess file from this section. Do not make manual + | edits on the .htaccess file. The changes will be lost if the value of + | createFile is true. + | + */ + + 'settings' => + [ + 'IfModule mod_headers.c' => ['Options -Indexes'], + 'FilesMatch "^(?i:docker\-compose\.yml|Dockerfile)$"' => ['deny from all'] + + # http -> https rewrite + //'IfModule mod_rewrite.c' => + //[ + // 'RewriteCond %{HTTPS} !=on', + // 'RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]' + //] + ], + + /* + |-------------------------------------------------------------------------- + | Cache + |-------------------------------------------------------------------------- + | + | Contains settings related to cache. + | + */ + + 'cache' => + [ + 'obGzhandler' => true, + 'modGzip' => + [ + 'status' => true, + 'includedFileExtension' => 'html?|txt|css|js|php|pl' + ], + 'modExpires' => + [ + 'status' => true, + 'defaultTime' => 1, # 1 second + 'fileTypeTime' => + [ + 'text/html' => 1, # 1 second + 'image/gif' => 2592000, # 1 month + 'image/jpeg' => 2592000, # 1 month + 'image/png' => 2592000, # 1 month + 'text/css' => 604800, # 1 week + 'text/javascript' => 216000, # 2.5 days + 'application/x-javascript' => 216000 # 2.5 days + ], + ], + 'modHeaders' => + [ + 'status' => true, + 'fileExtensionTimeAccess' => + [ + 'ico|pdf|flv|jpg|jpeg|png|gif|swf' => ['time' => 2592000, 'access' => 'public'], + 'css' => ['time' => 604800 , 'access' => 'public'], + 'js' => ['time' => 216000 , 'access' => 'private'], + 'xml|txt' => ['time' => 216000 , 'access' => 'public, must-revalidate'], + 'html|htm|php' => ['time' => 1 , 'access' => 'private, must-revalidate'] + ] + ] + ] +]; diff --git a/Settings1/Ini.php b/Settings1/Ini.php new file mode 100644 index 0000000..88439ff --- /dev/null +++ b/Settings1/Ini.php @@ -0,0 +1,61 @@ + "10M"] + | + */ + + # Upload Settings + 'file_uploads' => '', # "1" + 'post_max_size' => '', # "8M" + 'upload_max_filesize' => '', # "2M" + 'upload_tmp_dir' => '', # NULL + 'max_input_nesting_level' => '', # 64 + 'max_input_vars' => '', # 1000 + 'max_file_uploads' => '', # 20 + 'max_input_time' => '', # "-1" + 'max_execution_time' => '', # "30" + + # Session Settings + 'session.save_path' => '', # NULL + 'session.name' => '', # PHPSESSID + 'session.save_handler' => '', # files + 'session.auto_start' => '', # 0 + 'session.gc_probability' => '', # 1 + 'session.gc_divisor' => '', # 100 + 'session.gc_maxlifetime' => '', # 1440 + 'session.serialize_handler' => '', # php + 'session.use_strict_mode' => '', # 0 + 'session.use_cookies' => '', # 1 + 'session.referer_check' => '', # NULL + 'session.entropy_file' => '', # NULL + 'session.entropy_length' => '', # 0 + 'session.cache_limiter' => '', # nocache + 'session.cache_expire' => '', # 180 + 'session.use_trans_sid' => '', # 0 + 'session.hash_function' => '', # 0 + 'session.hash_bits_per_character' => '', # 4 + + # Session Upload Progress Settings + 'session.upload_progress.enabled' => '', # 1 + 'session.upload_progress.cleanup' => '', # 1 + 'session.upload_progress.prefix' => '', # upload_progress + 'session.upload_progress.name' => '', # PHP_SESSION_UPLOAD_PROGRESS + 'session.upload_progress.freq' => '', # 1% + 'session.upload_progress.min_freq' => '', # 1 + + # Cookie Settings + 'session.cookie_lifetime' => '', # 0 + 'session.cookie_path' => '', # / + 'session.cookie_domain' => '', # NULL + 'session.cookie_secure' => '', # NULL + 'session.cookie_httponly' => '' # NULL +]; diff --git a/Settings1/Projects.php b/Settings1/Projects.php new file mode 100644 index 0000000..8b0f566 --- /dev/null +++ b/Settings1/Projects.php @@ -0,0 +1,53 @@ + 'Backend', 'cast.site.com' => 'Cast'] + | + */ + + 'directory' => + [ + 'default' => ZN\Base::project('Frontend'), + 'others' => + [ + 'panel.pisilinux.org' => 'Panel', + 'panel.pisilinux.og' => 'Panel', + 'members.pisilinux.og' => 'Members', + 'forum1.pisilinux.og' => 'Forum1', + 'backend.pisilinux.og' => 'Backend', + ] + ], + + /* + |-------------------------------------------------------------------------- + | Containers + |-------------------------------------------------------------------------- + | + | Projects contain settings on each other's scope. + | That is, it is possible to use common files for the projects mentioned. + | Every directory except Controller and View directories can be used as a + | common directory. + | + | Example: child => parent + */ + + 'containers' => + [ + 'Panel' => 'Frontend', + 'Members' => 'Frontend', + 'Forum1' => 'Frontend', + 'Backend' => 'Frontend', + ] +]; diff --git a/Settings1/Robots.php b/Settings1/Robots.php new file mode 100644 index 0000000..e41a378 --- /dev/null +++ b/Settings1/Robots.php @@ -0,0 +1,39 @@ + false, + + /* + |-------------------------------------------------------------------------- + | Rules + |-------------------------------------------------------------------------- + | + | Expressions to be written to the file. + | + | Multiple Usage + | + | Example: rules => [['userAgent' => '*', disallow => ['/dir/']] ... ], + | + */ + + 'rules' => + [ + 'userAgent' => '*', + 'allow' => [], + 'disallow' => + [ + '/External/', + '/Internal/', + '/Projects/', + '/Settings/' + ] + ] +]; diff --git a/Settings1/Security.php b/Settings1/Security.php new file mode 100644 index 0000000..3f6f4af --- /dev/null +++ b/Settings1/Security.php @@ -0,0 +1,19 @@ + 'change_new_chars' + | + */ + + 'urlChangeChars' => + [ + '<' => '', + '>' => '' + ] +];