Location: PHPKode > projects > Modular Site Manager > htdocs/lk/content-topnav.php
<?php
chdir('../');
include('inc/functions.inc.php');
$a1 = str_replace("\n", ', ', $_POST['opts']);
$a2 = explode(', ', $a1);
foreach($a2 as $b)
{
	$b1 = explode(' - ', $b);
	$c1 .= $b1[0].'~';
	$c2 .= $b1[1].'~';
}
print_r(str_replace(array('~~', '~ '), '', $c1));
echo "<br />";
print_r(str_replace(array('~~', ' ~'), '', $c2));
$mysql->update(PRE.'config', "setting='".str_replace(array('~~', '~ '), '', $c1)."', setting2='".str_replace(array('~~', ' ~'), '', $c2)."'", "section='topnav'");
header('Location: '.$_SERVER['HTTP_REFERER']);
?>
Return current item: Modular Site Manager