Location: PHPKode > projects > @1 File Store > autoapprove_install.php
<?php
require_once("libs/header.php");
if (isset($_GET['go']) and $_GET['go']=='yes') {
	$sql1 = "DELETE FROM `".DB_PREFIX."user_groups` WHERE `group_name`='".$auto_approve_group."'";
	if(!$mysql->query($sql1)) {
		exit($mysql->error);
	}
	$sql2 = "INSERT INTO `".DB_PREFIX."user_groups` (`id`, `group_name`, `welcome_page`) VALUES ('', '".$auto_approve_group."', '".$auto_approve_group_message."')";
	if(!$mysql->query($sql2)) {
		exit($mysql->error);
	}
	echo '<center><strong>"<font color=red>'.$auto_approve_group.'</font>" '.$lang['group_installed'].'</strong></center>.';
	die();
} else {
	echo '<table width="80%" align="center"><tr><td><center><strong>'.$lang['new_group_called'].' "<font color=red>'.$auto_approve_group.'</font>" '.$lang['group_into_db'].'.<br>'.$lang['group_make_sure'].' "<font color=red>'.$auto_approve_group.'</font>" '.$lang['overwrite_table'].'.</strong></center></td></tr>';
	echo '<tr><td>&nbsp</td></tr>';
	echo '<tr><td align="right">'.$lang['group_not_named'].' "'.$auto_approve_group.'", <a href="'.$_SERVER['PHP_SELF'].'?go=yes">'.$lang['click_to_continue'].'</a>.</td></tr></table>';
}
?>
Return current item: @1 File Store