Zeile 39 | Zeile 39 |
---|
$cacheitem = array( 'title' => 'settings',
|
$cacheitem = array( 'title' => 'settings',
|
'cache' => serialize($cachedsettings)
| 'cache' => my_serialize($cachedsettings)
|
); } else
| ); } else
|
Zeile 54 | Zeile 54 |
---|
admin_redirect("index.php?module=tools-cache"); }
|
admin_redirect("index.php?module=tools-cache"); }
|
$cachecontents = my_unserialize($cacheitem['cache']);
| $cachecontents = unserialize($cacheitem['cache']);
|
if(empty($cachecontents)) { $cachecontents = $lang->error_empty_cache;
| if(empty($cachecontents)) { $cachecontents = $lang->error_empty_cache;
|
Zeile 79 | Zeile 79 |
---|
if($mybb->input['action'] == "rebuild" || $mybb->input['action'] == "reload") {
|
if($mybb->input['action'] == "rebuild" || $mybb->input['action'] == "reload") {
|
if(!verify_post_check($mybb->input['my_post_key']))
| if(!verify_post_check($mybb->get_input('my_post_key')))
|
{ flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=tools-cache");
| { flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=tools-cache");
|
Zeile 162 | Zeile 162 |
---|
if($mybb->input['action'] == "rebuild_all") {
|
if($mybb->input['action'] == "rebuild_all") {
|
if(!verify_post_check($mybb->input['my_post_key']))
| if(!verify_post_check($mybb->get_input('my_post_key')))
|
{ flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=tools-cache");
| { flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=tools-cache");
|
Zeile 226 | Zeile 226 |
---|
$table->construct_header($lang->size, array("class" => "align_center", "width" => 100)); $table->construct_header($lang->controls, array("class" => "align_center", "width" => 150));
|
$table->construct_header($lang->size, array("class" => "align_center", "width" => 100)); $table->construct_header($lang->controls, array("class" => "align_center", "width" => 150));
|
$query = $db->simple_select("datacache");
| $query = $db->simple_select("datacache", "*", "", array("order_by" => "title"));
|
while($cacheitem = $db->fetch_array($query)) { $table->construct_cell("<strong><a href=\"index.php?module=tools-cache&action=view&title=".urlencode($cacheitem['title'])."\">{$cacheitem['title']}</a></strong>");
| while($cacheitem = $db->fetch_array($query)) { $table->construct_cell("<strong><a href=\"index.php?module=tools-cache&action=view&title=".urlencode($cacheitem['title'])."\">{$cacheitem['title']}</a></strong>");
|
Zeile 264 | Zeile 264 |
---|
}
$table->construct_cell("<strong><a href=\"index.php?module=tools-cache&action=view&title=settings\">settings</a></strong>");
|
}
$table->construct_cell("<strong><a href=\"index.php?module=tools-cache&action=view&title=settings\">settings</a></strong>");
|
$table->construct_cell(get_friendly_size(strlen(serialize($cachedsettings))), array("class" => "align_center"));
| $table->construct_cell(get_friendly_size(strlen(my_serialize($cachedsettings))), array("class" => "align_center"));
|
$table->construct_cell("<a href=\"index.php?module=tools-cache&action=reload&title=settings&my_post_key={$mybb->post_code}\">".$lang->reload_cache."</a>", array("class" => "align_center"));
$table->construct_row();
| $table->construct_cell("<a href=\"index.php?module=tools-cache&action=reload&title=settings&my_post_key={$mybb->post_code}\">".$lang->reload_cache."</a>", array("class" => "align_center"));
$table->construct_row();
|