Execute( $query ); if( !$result || $result->RowCount() < 1 ) { // permission needs to be added $corePerm = ( $perm[2] == true ? 1 : 0 ); $adminOnly = ( $perm[3] == true ? 1 : 0 ); $query = "INSERT INTO ".Db::getPrefix()."permissions (permission,description,core_perm,admin_only) ". "VALUES ('".$perm[0]."','".$perm[1]."','".$corePerm."','".$adminOnly."')"; print( "Inserting permission: ".$perm[0]."
" ); $db->Execute( $query ); $total++; } } print("
$total permissions inserted
"); ?>