A więc tak wczoraj zrobiłem takiego (nic specjalnego)
CODE-BOX
<?phpif ( ! defined( 'IN_IPB' ) )
{
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
exit();
}
class task_item
{
var $class = "";
var $root_path = "";
var $task = "";
/*-------------------------------------------------------------------------*/
// Our 'auto_run' function
// ADD CODE HERE
/*-------------------------------------------------------------------------*/
function run_task()
{
UPDATE ibf_topics SET title = REPLACE(title, '[RS]', '') WHERE title LIKE '%[RS]%';
UPDATE ibf_topics SET title = REPLACE(title, '[rs]', '') WHERE title LIKE '%[rs]%';
//TYLKO TUTAJ ŁADUJESZ SWOJ KOD. NIC INNEGO NIE ZMIENIASZ.
//-----------------------------------------
// Unlock Task: DO NOT MODIFY!
//-----------------------------------------
$this->class->unlock_task( $this->task );
}
/*-------------------------------------------------------------------------*/
// register_class
// LEAVE ALONE
/*-------------------------------------------------------------------------*/
function register_class(&$class)
{
$this->class = $class;
$this->ipsclass =& $class->ipsclass;
$this->root_path = $this->class->root_path;
}
/*-------------------------------------------------------------------------*/
// pass_task
// LEAVE ALONE
/*-------------------------------------------------------------------------*/
function pass_task( $this_task )
{
$this->task = $this_task;
}
}
?>
Niestety przy ustawieniach pokazanych na screenie nie wykonuje tych zapytań w bazie danych. Gdzie popełniłem błąd ;>?