X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/httpdocs/libs
var
/
www
/
vhosts
/
hwtw.com.tw
/
httpdocs
/
libs
/
π
..
π
Bootstrap.php
(6.47 KB)
π
CKEditor.php
(933 B)
π
Controller.php
(1013 B)
π
Database.php
(9 KB)
π
Encryption.php
(3.14 KB)
π
Facebook
π
Form
π
Form.php
(2.12 KB)
π
Form_bak.php
(2.53 KB)
π
Func.php
(20.53 KB)
π
FuncSite.php
(10.07 KB)
π
Google_Client.php
(13.17 KB)
π
Hash.php
(531 B)
π
Mobiles.php
(108 B)
π
Model.php
(137 B)
π
Password.php
(768 B)
π
Session.php
(554 B)
π
View.php
(1.4 KB)
π
auth
π
ckeditor_php4.php
(14.45 KB)
π
ckeditor_php5.php
(14.43 KB)
π
config.php
(3.2 KB)
π
service
Editing: FuncSite.php
<?php class FuncSite extends Func { public static function backend_page_function($curr_page,$last_page,$arr){ //PHP_SELF $PHPSELF = $_SERVER['PHP_SELF']; if(!empty($arr)){ while(list($kk,$vv)=each($arr)){ $tmp1 .= "$kk=$vv&"; $tmp3 .='<input type="hidden" name="'.$kk.'" value="'.$vv.'" />'; } } $tmp1 = substr ($tmp1, 0,strlen($tmp1)-1); if (strlen($tmp1)>0) $tmp1= '&'.$tmp1; $tmp2 = '<form method="get">γ <a href="'.$PHPSELF.'?next_page=1' . $tmp1 . '">ζει </a> | <a href="'.$PHPSELF.'?next_page='.($curr_page-1). $tmp1 .'">δΈδΈι </a> | <a href="'.$PHPSELF.'?next_page='.($curr_page+1). $tmp1 .'">δΈδΈι </a>| <a href="'.$PHPSELF.'?next_page='. $last_page . $tmp1 . '">ζεΎι </a> γ ι η’Ό:<input name="next_page" value="'.$_GET['next_page'].'" size="2">'.$tmp3.'</form>'; return $tmp2; } public static function makeForm($arr){ echo '<form role="form" class="form-horizontal col-md-12" name="'.$arr['form_name'].'" id="'.$arr['form_name'].'" method="post" enctype="multipart/form-data"><input type="hidden" name="flag" value="true" />'; echo '<div class="row"><div class="col-sm-12 text-center">'; echo '<button type="button" onclick="javascript:history.go(-1);" class="btn btn-default">δΈδΈι </button>'; echo ' '; switch ($arr['func']) { case 'insert': echo '<button type="submit" class="btn btn-primary">ζ°ε’</button>'; break; case 'update': echo '<button type="submit" class="btn btn-primary">ζ΄ζ°</button>'; break; case 'show': echo '<button type="submit" class="btn btn-primary">θΏε</button>'; break; case 'send': echo '<button type="submit" class="btn btn-primary">ιεΊ</button>'; break; case 'copy': echo '<button type="submit" class="btn btn-primary">θ€θ£½</button>'; break; default: # code... break; } echo ' '; echo '<button type="reset" class="btn btn-default">εζΆ</button>'; echo '</div></div>'; if($arr['form_title']){ echo ' <div class="panel panel-default panel-no-heading"> <div class="panel-heading"><b>'.$arr['form_title'].'</b></div>'; } echo '<div class="panel-body"><br/>'; echo '<div class="row">'; echo '<div class="col-md-1"></div>'; if(is_array($arr['elements'])){ echo '<div class="col-md-10">'; foreach($arr['elements'] as $kk=>$vv){ if(file_exists("func/form_elements/".$vv['type'].".php"))require("func/form_elements/".$vv['type'].".php"); } } echo '</div></div></div><br/>'; echo '<div class="col-md-1"></div>'; echo '</div>'; echo '<br/><br/><div class="row"><div class="col-sm-12 text-center">'; // echo '</div></div></div><br/><div class="row"><div class="col-sm-12 text-center">'; //ζbutton echo '<button type="button" onclick="javascript:history.go(-1);" class="btn btn-default">δΈδΈι </button>'; echo ' '; switch ($arr['func']) { case 'insert': echo '<button type="submit" class="btn btn-primary">ζ°ε’</button>'; break; case 'update': echo '<button type="submit" class="btn btn-primary">ζ΄ζ°</button>'; break; case 'show': echo '<button type="submit" class="btn btn-primary">θΏε</button>'; break; case 'send': echo '<button type="submit" class="btn btn-primary">ιεΊ</button>'; break; case 'copy': echo '<button type="submit" class="btn btn-primary">θ€θ£½</button>'; break; default: # code... break; } echo ' '; echo '<button type="reset" class="btn btn-default">εζΆ</button>'; echo '</div>'; echo '</div>'; echo '</form>'; } public static function makeDate_admin($arr){ echo '<div class="col-md-4"> <small>ζεΎη»ε ₯ζ₯ζζι: '.$arr['last_login_date'].'</small> </div> <div class="col-md-4"> <small>IP: '.$arr['last_login_ip'].'</small> </div>'; } public static function makeDate($arr){ echo '<div class="col-md-4"> <small>ζ°ε’ζ₯ζ: '.$arr['create_date'].'</small> </div> <div class="col-md-4"> <small>ζθΏζ΄ζ°ζ₯ζ: '.$arr['update_date'].'</small> </div>'; } public static function makeDate_upd($arr){ echo '<div class="col-md-4"> <small>ζθΏζ΄ζ°ζ₯ζ: '.$arr['update_date'].'</small> </div>'; } public static function msg_box($msg){ if(is_array(Session::get('alert','client'))){ array_push(Session::get('alert','client'),array($msg)); }else{ Session::set('alert',array($msg),'client'); } } public static function msg_box_error($msg){ if(is_array(Session::get('alert1','client'))){ array_push(Session::get('alert1','client'),array($msg)); }else{ Session::set('alert1',array($msg),'client'); } } public static function fore_page($curr_page,$last_page,$arg=''){ if($last_page<=0) { return 0; } if(is_array($arg)){ foreach ($arg as $kk => $vv) { if($kk!='curr_page' && $vv!=''){ $page_tmp .= "{$kk}={$vv}&"; } } } // $page_tmp = $_SERVER['QUERY_STRING']; echo '<ul class="pagination pagination-sm">'; if($curr_page <= 1){ echo '<li class="disabled"> <a href="#" onclick="return false;">«</a> </li>'; }else{ echo '<li> <a href="?'.$page_tmp.'&curr_page=1">«</a> </li>'; } for($i=1;$i<=$last_page;$i++){ if($i == $curr_page){ echo '<li class="active"> <a href="?'.$page_tmp.'&curr_page='.$i.'">'.$i.'</a> </li>'; }else{ echo '<li> <a href="?'.$page_tmp.'&curr_page='.$i.'">'.$i.'</a> </li>'; } } if($curr_page >= $last_page){ echo '<li class="disabled"> <a href="#" onclick="return false;">»</a> </li>'; }else{ echo '<li> <a href="?'.$page_tmp.'&curr_page='.$last_page.'">»</a> </li>'; } echo '</ul>'; } public static function fore_page1($curr_page,$last_page,$arg='',$rows){ if($last_page<=0) { return 0; } if(is_array($arg)){ foreach ($arg as $kk => $vv) { if($kk!='p' && $vv!=''): $page_tmp .= "{$kk}={$vv}&"; endif; } } $nowp = $_GET['p']; if ($nowp == ''){ $nowp = 1; } if ($last_page >= 6){ $first = $nowp - 2;//3 $last = $nowp + 2;//7 if ($first <= 0){ $first = 1; $last = 5; }elseif($last > $last_page){ $first = $last_page - 4; $last = $last_page; } }else{ $first = 1; $last = $last_page; } $pre = $nowp-1; if($pre<=0){ $pre = '1'; } $bef = $nowp+1; if($bef>$last_page){ $bef = $last_page; } echo '<ul>'; // echo '<li class="pre"><a href="?'.$page_tmp.'p=1" title="第δΈι "><i class="icon-pagination-first"><img src="images/comm/btn_pre2.png"></i></a></li>'; if($curr_page <= 1){ echo '<li class="pre"><a href="#" title="εδΈι " onclick="return false;"><i class="icon-pagination-first"><img src="components/paginationS1/img/pagination-aroow-l@2x.png"></i></a></li>'; }else{ echo '<li class="pre"><a href="?'.$page_tmp.'p='.$pre.'" title="εδΈι "><i class="icon-pagination-first"><img src="components/paginationS1/img/pagination-aroow-l@2x.png"></i></a></li>'; } for($i=$first;$i<=$last;$i++){ if($i == $curr_page){ echo '<li class="is-active"> <a href="?'.$page_tmp.'p='.$i.'">'.$i.'</a> </li>'; }else{ echo '<li> <a href="?'.$page_tmp.'p='.$i.'">'.$i.'</a> </li>'; } } if($curr_page >= $last_page){ echo '<li class="next"><a href="#" title="δΈδΈι " onclick="return false;"><i class="icon-pagination-right"><img src="components/paginationS1/img/pagination-aroow-r@2x.png"></i></a></li>'; }else{ echo '<li class="next"><a href="?'.$page_tmp.'p='.$bef.'" title="δΈδΈι "><i class="icon-pagination-right"><img src="components/paginationS1/img/pagination-aroow-r@2x.png"></i></a></li>'; } // echo '<li class="last"><a href="?'.$page_tmp.'p='.$rows.'" title="ζεΎδΈι "><i class="icon-pagination-last"><img src="images/comm/btn_next2.png"></i></a></li>'; echo '</ul>'; } public static function fore_page2($curr_page,$last_page,$arg=''){ if($last_page<=0) { return 0; } if(is_array($arg)){ foreach ($arg as $kk => $vv) { $page_tmp .= "{$kk}={$vv}&"; } } // echo '<ul class="pagination pagination-sm">'; // if($curr_page <= 1){ // echo '<li class="disabled"> // <a href="#" onclick="return false;">«</a> // </li>'; // }else{ // echo '<li> // <a href="?'.$page_tmp.'curr_page=1">«</a> // </li>'; // } for($i=1;$i<=$last_page;$i++){ if($i == $curr_page){ echo '<li class="is-active"> <a href="?'.$page_tmp.'p='.$i.'">'.$i.'</a> </li>'; }else{ echo '<li> <a href="?'.$page_tmp.'p='.$i.'">'.$i.'</a> </li>'; } } // if($curr_page >= $last_page){ // echo '<li class="disabled"> // <a href="#" onclick="return false;">»</a> // </li>'; // }else{ // echo '<li> // <a href="?'.$page_tmp.'curr_page='.$last_page.'">»</a> // </li>'; // } // echo '</ul>'; } }
Upload File
Create Folder