잘못된 rewrite 규칙 수정
This commit is contained in:
1 parent
cf566e3512
commit
0954bd8b5f
2 files changed
+12
-3
No files matched your search
@@ -1523,6 +1523,15 @@ function sql_set_charset($charset, $link=null)
|
||||
mysql_query(" set names {$charset} ", $link);
|
||||
}
|
||||
|
||||
function sql_data_seek($result, $offset=0)
|
||||
{
|
||||
if ( ! $result ) return;
|
||||
|
||||
if(function_exists('mysqli_set_charset') && G5_MYSQLI_USE)
|
||||
mysqli_data_seek($result, $offset);
|
||||
else
|
||||
mysql_data_seek($result, $offset);
|
||||
}
|
||||
|
||||
// mysqli_query 와 mysqli_error 를 한꺼번에 처리
|
||||
// mysql connect resource 지정 - 명랑폐인님 제안
|
||||
|
||||
+3
-3
@@ -219,7 +219,6 @@ function exist_seo_url($type, $seo_title, $write_table, $sql_id=0){
|
||||
|
||||
if( $type === 'bbs' ){
|
||||
$sql = "select wr_seo_title FROM {$write_table} WHERE wr_seo_title = '".sql_real_escape_string($seo_title)."' AND wr_id <> '$sql_id' limit 1";
|
||||
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$exists_title = $row['wr_seo_title'];
|
||||
@@ -326,8 +325,9 @@ function get_mod_rewrite_rules($return_string=false){
|
||||
$rules[] = '<IfModule mod_rewrite.c>';
|
||||
$rules[] = 'RewriteEngine On';
|
||||
$rules[] = 'RewriteBase '.$base_path;
|
||||
$rules[] = 'RewriteCond %{REQUEST_FILENAME} !-f';
|
||||
$rules[] = 'RewriteCond %{REQUEST_FILENAME} !-d';
|
||||
$rules[] = 'RewriteCond %{REQUEST_FILENAME} -f [OR]';
|
||||
$rules[] = 'RewriteCond %{REQUEST_FILENAME} -d';
|
||||
$rules[] = 'RewriteRule ^ - [L]';
|
||||
|
||||
if( $add_rules = apply_replace('add_mod_rewrite_rules', '', $get_path_url, $base_path, $return_string) ){
|
||||
$rules[] = $add_rules;
|
||||
|
||||
Reference in new issue
Block a user