Prevent users from changing style
From PunBB Resource Wiki
[edit]
PHP
Open profile.php, and search for
$styles = array();
$d = dir(PUN_ROOT.'style');
while (($entry = $d->read()) !== false)
{
if (substr($entry, strlen($entry)-4) == '.css')
$styles[] = substr($entry, 0, strlen($entry)-4);
}
$d->close();
Replace with
/* $styles = array();
$d = dir(PUN_ROOT.'style');
while (($entry = $d->read()) !== false)
{
if (substr($entry, strlen($entry)-4) == '.css')
$styles[] = substr($entry, 0, strlen($entry)-4);
}
$d->close();
*/
This will stop the form from being displayed but as someone pointed out, people can still change from typing into the browser bar.
--Mark 22:34, 20 February 2007 (GMT)

