function test_turnOff()
 {
     $mq = new MagicQuotes();
     $mq->turnOff();
     $this->assertEquals($this->testString, $_GET['test']);
     $mq->turnOff();
     $mq->turnOff();
     $mq->turnOff();
     $this->assertEquals($this->testString, $_GET['test']);
     $mq->turnOn();
     $mq->turnOff();
     $this->assertEquals($this->testString, $_GET['test']);
 }
Пример #2
0
$woche[] = 'Dienstag';
$woche[] = 'Mittwoch';
$woche[] = 'Donnerstag';
$woche[] = 'Freitag';
$woche[] = 'Samstag';
// Variabeln fuer Benutzer Avatare
$img_person_dir['intern'] = $root . "img/person/";
$img_person_dir['extern'] = "/img/person/";
$max_avatar_groesse = 100000;
// Code, der in HTML umgewandelt werden soll
$code_html = array('b' => '<b>$1</b>', 'i' => '<i>$1</i>', 'u' => '<u>$1</u>', 's' => '<s>$1</s>', 'strong' => '<strong>$1' . '</strong>', 'center' => '<div align=' . '\\"' . 'center' . '\\"' . '>$1</div>', 'quote' => '<blockquote>$1</blockquote>', 'code' => '<code>$1</code>', 'pre' => '<pre>$1</pre>');
/////////////////////// Anfang OOP ///////////////////////
// handle different magic quotes configurations
require_once $root . 'class_MagicQuotes.php';
$magicQuotes = new MagicQuotes();
$magicQuotes->turnOn();
unset($magicQuotes);
// object containing every information needed for output
// $output->out() formates everything and send it to the user
$output = new output();
// default language
$output->lang = 'de';
// navigation links
$output->nav['start'] = $root;
$output->nav['help'] = $root . 'dokumentation/';
$output->nav['up'] = '../';
$output->nav['author'] = $root . 'about/';
$output->nav['copyright'] = $root . 'COPYING';
// title and headline
$output->title[0] = 'infoschool';
$output->headline[0] = 'infoschool';