Browse Source

securiser cet exec de debug

pull/4/head
Cerdic 2 years ago
parent
commit
18069720dc
  1. 11
      exec/admin_locks.php

11
exec/admin_locks.php

@ -1,5 +1,12 @@
<?php
if (!defined("_ECRIRE_INC_VERSION")) return;
if (!autoriser('configurer', 'memoization')){
include_spip('inc/minipres');
echo minipres();
}
header('Content-Type: text/plain');
echo time()."\n";
@ -16,11 +23,11 @@ switch ($_GET['o']) {
break;
case 'unset':
$a = cache_unset('test');
$a = cache_del('test');
break;
case 'unsetlock':
$a = cache_unset('lock::test');
$a = cache_unlock('lock::test');
break;
case 'lock':

Loading…
Cancel
Save