Location: PHPKode > projects > Akasha > akasha/folder_rename.php
<?

if ($akashaID == $ID) {

	include ("includes/global.inc"); 			// Global Variables
	include ("includes/functions.inc"); 		// Global Functions

	$user_id = findUserByHash($ID);

	$auth_user = getUserIDMbox($mbox_id);
	$user_id = findUserByHash($ID);
	if ($user_id != $auth_user) {
		Header("Location: main.php?error_code=1");		
	}

	include ("includes/head.inc"); 				// Standart Headers
	include ("stylesheets/homestyle.inc"); 		// Stylesheets

?>

  <script language="JavaScript">
  <!--
  function submitonce(theform){
  	if (document.all||document.getElementById){
  		for (i=0;i<theform.length;i++){
  			var tempobj=theform.elements[i]
  			if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
  				tempobj.disabled=true
  		}
  	}
  }
  //-->
  </script>
<?

  echo "</head>\n";
  echo "<body bgcolor='#FFFFFF' text='#000000' link='#3457A9' vlink='#3457A9' alink='#009966'>\n";
  echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' height='200'>\n";
  echo "  <tr>\n";
  echo "    <td valign='top'>\n";

  echo "      <table width='100%' border='0' cellspacing='0' cellpadding='0'>\n";
  echo "              \n";
  echo "        <tr bgcolor='#D1D1D1'>\n";
	$mailadress = getUserMailAdress($ID);	
  echo "          <td><b><font color='#304167'><i>$mailadress -&gt; Folder -> Rename</i></font></b></td>\n";
  echo "        </tr>\n";
  echo "            \n";
  echo "      </table>\n";
  echo "      <br>\n";
  echo "      <br>\n";
  echo "      <table width='550' border='0' cellspacing='0' cellpadding='0' align='center'>\n";
  echo "        <tr align='center'>\n";
  echo "          <td>\n";
  echo "            <form method='post' action='folder_modify.php?ID=$ID' onSubmit='submitonce(this)'>\n";
  echo "              <input type='hidden' name='mbox_id' value='$mbox_id'>\n";

	$user_id = findUserByHash($ID);
	$query = "select mboxname from tblMailBoxes where user_id = $user_id and mbox_id=$mbox_id";
	$result = mysql_db_query("$dbname",$query);
	if($result) {
		while ($r = mysql_fetch_array($result)) {
 			$mboxname = $r["mboxname"];
		}
	}

  echo "              New Folder Name \n";
  echo "              <input type='text' name='txtisim' value='$mboxname'>\n";
  echo "              <input type='submit' name='Submit' value='OK'>\n";
  echo "            </form>\n";
  echo "            </td>\n";
  echo "        </tr>\n";
  echo "        </tr>\n";
  echo "      </table>\n";
  echo "    </td>\n";
  echo "  </tr>\n";
  echo "</table>\n";
  echo "</body>\n";
  echo "</html>\n";

} else {
		Header("Location: main.php?error_code=1");
}

?>
Return current item: Akasha