Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F775966
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 6, 3:51 PM
Size
11 KB
Mime Type
text/x-diff
Expires
Sat, Feb 8, 3:51 PM (23 h, 27 m)
Engine
blob
Format
Raw Data
Handle
558236
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/5.1.x/tools/.htaccess
===================================================================
--- branches/5.1.x/tools/.htaccess (revision 13375)
+++ branches/5.1.x/tools/.htaccess (nonexistent)
@@ -1,57 +0,0 @@
-### File security
-# Exclude direct access to tpl, tpl.xml, inc.php, sql extensions
-#
-<Files ~ "\.(tpl|tpl.xml|inc.php|sql)$">
- order allow,deny
- deny from all
-</Files>
-
-# Exclude direct access
-<Files ~ "(config.php|debug.php)">
- order allow,deny
- deny from all
-</Files>
-
-## Enable mod-rewrite
-RewriteEngine On
-
-###### Rewrite rule to force 'www.' prefix. Use only if needed
-# If your site can be accessed both with and without the 'www.' prefix,
-# use the following setting to redirect all users to access the site with the 'www.'
-# when they access without 'www.'. Uncomment and MAKE sure to adapt for your domain name
-#
-# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
-# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
-
-###### Rewrite rules to block common hacks
-## If you experience problems comment out the operations listed below
-## Block out any script trying to base64_encode crap to send via URL
-RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
-## Block out any script that includes a <script> tag in URL
-RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
-## Block out any script trying to set a PHP GLOBALS variable via URL
-RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
-## Block out any script trying to modify a _REQUEST variable via URL
-RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
-## Send all blocked request to homepage with 403 Forbidden error!
-RewriteRule ^(.*)$ index.php [F,L]
-
-## Uncomment line below if FollowSymLinks option is not enabled
-## by default in server configuration
-#
-# Options +FollowSymLinks
-
-## Uncomment following line if your webserver's URL
-## is not directly related to physical file paths.
-## Update Your In-Portal Directory (just / for root)
-#
-# RewriteBase /
-
-## In-Portal SEF URLs
-#
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME}/ !-f
-RewriteCond %{REQUEST_FILENAME}/index.php !-f
-RewriteCond %{REQUEST_FILENAME}/index.html !-f
-RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|js|css|ico|swf)$ [NC]
-RewriteRule ^(.*) index.php?rewrite=on&_mod_rw_url_=$1 [QSA]
\ No newline at end of file
Property changes on: branches/5.1.x/tools/.htaccess
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.2.2.8
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: branches/5.1.x/tools/clear_cache.sh
===================================================================
--- branches/5.1.x/tools/clear_cache.sh (nonexistent)
+++ branches/5.1.x/tools/clear_cache.sh (revision 13376)
@@ -0,0 +1 @@
+find ../system/cache/ -not -name "CVS" -not -name ".svn" -not -name "./" -not -name ".htaccess" -type d -o -name "debug_*" -maxdepth 1 | xargs rm -rf
Index: branches/5.1.x/system/cache/clean.sh
===================================================================
--- branches/5.1.x/system/cache/clean.sh (revision 13375)
+++ branches/5.1.x/system/cache/clean.sh (nonexistent)
@@ -1 +0,0 @@
-find ./ -not -name "clean.sh" -not -name "CVS" -not -name "./" -not -name ".htaccess" -type d -o -name "debug_*" -maxdepth 1 | xargs rm -rf
Property changes on: branches/5.1.x/system/cache/clean.sh
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.1.2.1
\ No newline at end of property
Index: branches/5.1.x/core/admin_templates/tools/system_tools.tpl
===================================================================
--- branches/5.1.x/core/admin_templates/tools/system_tools.tpl (revision 13375)
+++ branches/5.1.x/core/admin_templates/tools/system_tools.tpl (revision 13376)
@@ -1,210 +1,210 @@
<inp2:m_include t="incs/header"/>
<inp2:m_RenderElement name="combined_header" prefix="adm" section="in-portal:service" title_preset="system_tools"/>
<script type="text/javascript">
function show_structure($prefix, $event) {
open_popup('adm', $event, 'table_structure', '800x575');
}
function check_prefix_config() {
open_popup('adm', 'OnCheckPrefixConfig', 'config_check', '800x575');
}
function compile_templates()
{
openwin('<inp2:m_Link template="tools/compile_templates" m_wid="100"/>', 'compile', 800, 575);
}
</script>
<inp2:m_DefineElement name="service_elem" event_prefix="adm">
<tr class="<inp2:m_odd_even odd='table-color1' even='table-color2'/>">
<inp2:m_inc param="tab_index" by="1"/>
<td class="text" style="width: 300px;">
<inp2:m_param name="title"/>
</td>
<td valign="top" colspan="2">
<input class="button" type="button" onclick="submit_event('<inp2:m_param name="event_prefix"/>', '<inp2:m_param name="event_name"/>');" value="Run">
</td>
</tr>
</inp2:m_DefineElement>
<table width="100%" cellspacing="0" cellpadding="4" class="bordered">
<!--##<inp2:m_RenderElement name="subsection" title="la_section_General"/>##-->
<inp2:m_RenderElement name="service_elem" title="Reset mod_rewrite Cache" event_name="OnResetModRwCache"/>
<inp2:m_RenderElement name="service_elem" title="Reset SMS Menu Cache" event_prefix="c" event_name="OnResetCMSMenuCache"/>
<inp2:m_RenderElement name="service_elem" title="Reset Sections Cache" event_name="OnResetSections"/>
<inp2:m_RenderElement name="service_elem" title="Reset Configs Cache" event_name="OnResetConfigsCache"/>
<inp2:m_RenderElement name="service_elem" title="Re-build Multilanguage Fields" event_prefix="lang" event_name="OnReflectMultiLingualFields"/>
<inp2:m_RenderElement name="subsection" title="la_section_Templates"/>
<inp2:m_RenderElement name="service_elem" title="Re-build Themes Files" event_name="OnRebuildThemes"/>
<tr class="<inp2:m_odd_even odd='table-color1' even='table-color2'/>">
<inp2:m_inc param="tab_index" by="1"/>
<td class="text" style="width: 300px;">
Re-compile Templates
</td>
<td valign="top" colspan="2">
<input class="button" type="button" onclick="compile_templates();" value="Run">
</td>
</tr>
- <inp2:m_RenderElement name="service_elem" title="Delete Compiled Templates" event_name="OnDeleteCompiledTemplates"/>
+ <inp2:m_RenderElement name="service_elem" title="Clear Templates Cache" event_name="OnDeleteCompiledTemplates"/>
<inp2:m_RenderElement name="subsection" title="la_section_Configs"/>
<tr class="<inp2:m_odd_even odd='table-color1' even='table-color2'/>">
<inp2:m_inc param="tab_index" by="1"/>
<td class="text" style="width: 300px;">
Table Structure:
</td>
<td valign="top" colspan="2">
<input type="text" name="table_name" value="" size="30"/>
<input class="button" type="button" onclick="show_structure('adm', 'OnGenerateTableStructure');" value="Run">
<span class="small">table name (table prefix is optional) OR "unit config" prefix</span>
</td>
</tr>
<tr class="<inp2:m_odd_even odd='table-color1' even='table-color2'/>">
<inp2:m_inc param="tab_index" by="1"/>
<td class="text" style="width: 300px;">
Locate Unit Config File:
</td>
<td valign="top" colspan="2">
<input type="text" name="config_prefix" value="" size="30"/>
<input class="button" type="button" onclick="check_prefix_config();" value="Run">
<span class="small">unit config prefix</span>
</td>
</tr>
<inp2:m_if check="adm_MemoryCacheEnabled">
<inp2:m_RenderElement name="subsection" title="la_section_MemoryCache"/>
<inp2:m_RenderElement name="service_elem" title="Reset All Keys" event_name="OnResetMemcache"/>
<tr class="<inp2:m_odd_even odd='table-color1' even='table-color2'/>">
<inp2:m_inc param="tab_index" by="1"/>
<td class="text" style="width: 300px;">
Key Name:
</td>
<td valign="top" colspan="2">
<table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">
<a href="#" class="quick-memory-cache-key">master:configs_parsed</a>,
<a href="#" class="quick-memory-cache-key">master:config_files</a>,
<a href="#" class="quick-memory-cache-key">master:sections_parsed</a>,
<a href="#" class="quick-memory-cache-key">master:cms_menu</a>,
<a href="#" class="quick-memory-cache-key">master:template_mapping</a>,
<a href="#" class="quick-memory-cache-key">master:StructureTree</a>
<br/>
<br/>
</td>
</tr>
<tr>
<td style="width: 440px;">
<input type="text" id="memory_cache_key_name" value="" style="width: 440px;"/>
</td>
<td style="padding-bottom: 2px; padding-left: 4px;">
<input type="button" class="button" id="memory_cache_get" value="Get Value"/>
</td>
</tr>
</table>
</td>
</tr>
<tr class="<inp2:m_odd_even odd='table-color1' even='table-color2'/>">
<inp2:m_inc param="tab_index" by="1"/>
<td class="text" style="width: 300px;">
Key Value:
</td>
<td valign="top" colspan="2">
<table cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">
<textarea id="memory_cache_key_value" style="width: 440px; height: 120px;"></textarea>
</td>
<td valign="bottom" style="padding-bottom: 2px; padding-left: 4px;">
<input type="button" class="button" id="memory_cache_set" value="Set Value"/>
</td>
</tr>
</table>
</td>
</tr>
</inp2:m_if>
</table>
<script type="text/javascript">
<inp2:m_if check="m_Get" name="refresh_tree">
getFrame('menu').location.reload();
</inp2:m_if>
<inp2:m_if check="adm_MemoryCacheEnabled">
$(document).ready(
function () {
$('#memory_cache_get').click(
function ($e) {
var $me = $(this);
$me.attr('disabled', 'disabled').removeClass('button').addClass('button-disabled');
$.post(
'<inp2:m_Link template="dummy" pass="m,adm" adm_event="OnMemoryCacheGet" js_escape="1" no_amp="1"/>',
{
key: $('#memory_cache_key_name').val()
},
function ($data) {
$data = eval('(' + $data + ')');
if ($data.code === 0) {
if (confirm('Data Size: ' + $data.size + '. Type: ' + $data.type + '. Display data?')) {
$('#memory_cache_key_value').val($data.value);
}
}
else {
alert($data.message);
}
$me.attr('disabled', '').addClass('button').removeClass('button-disabled');
}
);
}
);
$('a.quick-memory-cache-key').click(
function ($e) {
$('#memory_cache_key_name').val( $(this).text() );
$('#memory_cache_get').click();
return false;
}
);
$('#memory_cache_set').click(
function ($e) {
var $me = $(this);
$me.attr('disabled', 'disabled').removeClass('button').addClass('button-disabled');
$.post(
'<inp2:m_Link template="dummy" pass="m,adm" adm_event="OnMemoryCacheSet" js_escape="1" no_amp="1"/>',
{
key: $('#memory_cache_key_name').val(),
value: $('#memory_cache_key_value').val()
},
function ($data) {
$data = eval('(' + $data + ')');
if ($data.code === 0) {
alert($data.result);
}
else {
alert($data.message);
}
$me.attr('disabled', '').addClass('button').removeClass('button-disabled');
}
);
}
);
}
);
</inp2:m_if>
</script>
<inp2:m_include t="incs/footer"/>
\ No newline at end of file
Event Timeline
Log In to Comment