Browse Source

Remove fix

tags/v1.3^2
Teknikode 5 years ago
parent
commit
597591678f
3 changed files with 3 additions and 25 deletions
  1. 0
    22
      includes/common.php
  2. 1
    1
      templates/default/js/admin.js
  3. 2
    2
      web.config

+ 0
- 22
includes/common.php View File

@@ -15,18 +15,6 @@ function get_page_url($page, $CONF, $full = true)
$cur_sub = get_subdomain($CONF);
$full_url = get_http($CONF).$cur_sub.".".$CONF['host']."/".$page;
break;
case 'get':
if (isset($_GET['site_page']))
{
$cur_page = $_GET['site_page'];
}
else
{
$cur_page = $CONF['default_page'];
}
$cur_sub = get_subdomain($CONF);
$full_url = get_http($CONF).$cur_sub.".".$CONF['host']."/".$cur_page;
break;
}
return $full_url;
}
@@ -98,16 +86,6 @@ function get_active($page, $CONF)
case 'page':
$cur_page = get_page();
break;
case 'get':
if (isset($_GET['site_page']))
{
$cur_page = $_GET['site_page'];
}
else
{
$cur_page = $CONF['default_page'];
}
break;
}
if ($cur_page == $page)
{

+ 1
- 1
templates/default/js/admin.js View File

@@ -23,7 +23,7 @@ function linkUserAddRole(selector)
role=encodeURIComponent(selectObj.options[selectObj.selectedIndex].value);
$.ajax({
type: "POST",
url: "../../../add_user_role.php",
url: "../../../admin/add_user_role.php",
data: "id="+user_id+"&role="+role,
success: function(html)
{

+ 2
- 2
web.config View File

@@ -3,11 +3,11 @@
<system.webServer>
<rewrite>
<rules>
<rule name="RedirectDefaultPage" enabled="true" stopProcessing="false">
<rule name="RedirectDefaultPage" enabled="true" stopProcessing="true">
<match url="^(.+)$" negate="true" />
<action type="Redirect" url="home/" />
</rule>
<rule name="RewriteSubMainURL" enabled="true" stopProcessing="false">
<rule name="RewriteSubMainURL" enabled="false" stopProcessing="false">
<match url="^([^/]+)/(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

Loading…
Cancel
Save