<?php
/*
This script will restore your ownership flags in the event you lose them. To run, put in your username in $usrname and upload to your OP directory and run it.

Don't forget to delete this file when you are done.
*/


//put your username here
$usrname = '';


// ---------------

header('Content-type: text/plain');
include('dbconn.php');

if (empty ($usrname)) {
	exit ('You must enter your user name into this script before you run it.');
}

$result = mysql_query("UPDATE {$OekakiPoteto_MemberPrefix}oekaki SET usrflags='GDIMU', rank=9 WHERE usrname='$usrname'");
if (!$result) {
	echo mysql_error()."\n\n";
}

mysql_close($dbconn);

exit ('Flags restored');
?>