");; ?>

Name: 

Name: 

Name: 
"); if($btn){ if($newacct)$success=newAccount($dir,$id,$email,$pw1,$pw2); else $success=doLogin($dir,$id,$pw1); } ?>
Success
You have been logged in.

Your current folder is now "". Click the 'Plus' sign in the top toolbar to upload images or to search for videos.
 
ID: 
Email Address: 
Password:   
Repeat Password: 
forgot password?
"); //echo("dir=".$dir."
"); //echo("id=".$id."
"); //echo("pw=".$pw."
"); //echo("txt=".$txt); $a=_split($txt,"|"); //exit($a[0]."==".$pw."?"); if($a[0]==$pw && $pw!=""){ $_SESSION['id']=$id; $_SESSION['loginpath']=$path; setcookie("id", $id, time()+60*60*24*30, "/", $domain, 0,0); setcookie("path", $path, time()+60*60*24*30, "/", $domain, 0,0); //getSettings($id,1); return "yes"; } return "Login Failed"; } //------------------ create account -------------- function newAccount($dir,$id,$email,$pw1,$pw2){ global $gPath,$fileid,$gLoggedIn,$gContent,$TLD,$gIP; if(!okString($id,""))return "Invalid ID"; if(!$pw1)return "Invalid Password"; if(!$email)return "Invalid Email"; if($pw1!=$pw2)return "Passwords don't match"; if(_in($id,"NFTs")){ alert("Invalid ID. It cannot contain NFTs"); exit(); } $path=getLoginPath($dir,$id); //only create new accounts in the root folder if(file_exists($path))return "Account already exists"; if(!mkdir($path,$mode=0755))return "Failed to create folder"; //--- write pwd file --- $f=$gPath.$f; $fh=fopen($path."/".$fileid,'w'); fwrite($fh,$pw1."||".date("y.m.d.H.m")."|".$gIP); fclose($fh); //--- copy and write default files --- if($d=@opendir($gPath."_default")){ while(($file=readdir($d))!==false){ if($file!=".." && $file!="."){ copy($gPath."_default/".$file, $path.$file); } } closedir($d); //repFileTxt($path."domain.htm", $TLD, $id.".".$TLD); repFileTxt($path."Home.ixi", $gPath."_default/", $gPath.$id."/"); } return doLogin($dir,$id,$pw1); } //========================= LOGOUT ============================== function logout(){ global $gID,$dir,$movers,$domain; if(!$gID){ alert("Already logged out"); return; } $path=getLoginPath($dir,$gID); $_SESSION['id']=""; $_SESSION["loginpath"]=""; $_SESSION["loggedout"]="yes"; setcookie("id", "", time()-3600, "/", $domain, 0,0); setcookie("path", "", time()-3600, "/", $domain, 0,0); echo("

"); // --- changed to reload window completely ---- //reloadMenu($dir,0,1,1); // calls resetToolbarRights() when it loads ?>
Success
You have been logged out...
 
"; $txt2.=""; $txt2.="
"; $txt2.=$txt."
"; //$txt2="".$name." has been created"); reloadMenu($dir,0,1,0); exit(""); }} if(empty($name))$name=rand(1000,99999); if(!empty($dir))$displaydir.=$dir."/"; echo(previewScript("file")); ?>
 Name:   /   
".$name." has been created"); reloadMenu($dir,0,1,0); } } if(!empty($dir))$displaydir.=$dir."/"; echo(previewScript("file")); ?>
/
 
 /
 
/".$dir." has been deleted"); break; }} //========================= RENAME ============================== //-------- This renames OR copies a file OR a directory --------- function renameX(){ global $typ,$dir,$file,$dirfile,$page,$act,$filetyp,$gID,$gLoggedIn,$gAcctAdmin; global $movers,$gPath,$dirlink,$domainid; if(!$gLoggedIn && $gID && $filetyp=="image" && $act=="copy"){ $forcecopy=1; }else{ //msg("acctAdmin="+gAcctAdmin); //if($dir==$gID){ if(!$gAcctAdmin){ errorMsg("Invalid action"); exit(0); } $forcecopy=0; } $newdir=rqst('newdir'); if(_in($newdir,"NFTs")){ alert("Invalid name. It cannot contain NFTs"); exit(); } $ext=rqst('ext'); $newdir=$newdir.$ext; //wrtb("gPath=".$gPath); if($newdir){ if($gID!=$domainid)$newdir=$gID."/".$newdir; $success=""; } $ext=get_ext($file); //wrtb("2newdir=".$newdir); if($filetyp=="image" && get_ext($dirfile)!=".svg"){ $ThumbExists=true; $realname=str_replace("_tn.",".",$dirfile); $thumbname=str_replace($ext,"_tn".$ext,$realname); }else{ $ThumbExists=false; $realname=$dirfile; $thumbname=""; } //wrtb("dirfile=".$dirfile.", newdir=".$newdir.", realname=".$realname.", thumbname=".$Thumbname); //wrtb("dir=".$dir.", file=".$file.", newdir=".$newdir); if(!empty($newdir)){ //$newdir=str_replace("%20"," ",$newdir); if($ThumbExists){ $ext=get_ext($realname); $newname=str_replace("_tn.",".",$newdir); $newthumbname=str_replace($ext,"_tn".$ext,$newname); }else{ $newname=$newdir; $newthumbname=""; } if(_in($newname,"..") || _in($newname,"Content")){ errorMsg("Invalid name"); $success="no"; } if($newname==$realname){ errorMsg("New name same as old"); $success="no"; } if($success==""){ $path=getPath($newname); //wrtb("path=".$path); myMkdir($path); //wrtb("typ=".$typ.", filetype=".$filetyp."
realname=".$realname." , newname=".$newname); if($act=="rename"){ myRename($realname,$newname); }else{ if($typ=="file")myCopyFile($realname,$newname); else myCopyDir($realname,$newname); } if($ThumbExists){ if($act=="rename")myRename($thumbname,$newthumbname); else{ if($typ=="file")myCopyFile($thumbname,$newthumbname); //else myCopyDir($realname,$newname); } } $realname=$newname; $success="yes"; $dirfile=$newdir; wrt("
"); winSuccessMsg(""); if($typ=="folder"){ refreshMenu(); }else{ refreshMenu(); } $dir=getPath($dirfile); $file=getFile($dirfile); exit(0); } } //wrtb("dir=".$dir.", realname=".$realname.", newname=".$newname.", ThumbNail=".$ThumbNail); //wrtb("dirfile=".$dirfile); //------------------ if copied from root folder just do it! ----------------- if($forcecopy){ //wrtb($realname."
".$gID."/".$realname."

"); myForceCopyFile($realname,$gID."/".$realname); ?>
has been copied to
/
 
realname=".$realname." , newname=".$newname.", thumbname=".$thumbname.", newthumbname=".$newthumbname); $tmp=_rep($dirfile,$gID."/",""); $tmp=_rep($tmp,"_tn.","."); $tmp=_rep($tmp,$ext,""); if($act=="copy"){ ?>
 
New Name:



"); winSuccessMsg("The folder has been created!"); if($gLoggedIn)refreshMenu(); return; }else errorMsg("There was an unknown error creating the folder"); } $tmp=_rep($dirdisplay,"/".$gID."/",""); ?>

New Folder Name:

"); if($typ=="folder"){ myDeleteDir($dir,true); //reloadMenu($dir,1,1,0); refreshMenu(); winSuccessMsg("The folder ($dir) has been deleted"); exit(); }else{ myDeleteFile($dirfile); refreshMenu(); winSuccessMsg("The file ($dirfile) has been deleted"); exit(); } } //wrtb("dirfile=".$dirfile); $tmp=_rep($dirfile,$gID."/",""); $tmp=_rep($tmp,"_tn.","."); ?>
"); } ?>
 
 
WARNING
If you proceed the folder and
all it's contents will be deleted
 

WARNING

All in this folder will be deleted
FOLDER:
(TEMPLATE NOT BEING STORED YET!)
The HOME PAGE has been set to:

".$url); wrt(""); return; } //----------- ADD A FILE TO ANOTHER FOLDER ------------- function addFile(){ global $gRoot,$gPath,$dir,$dirlink; $action=myPost('action'); $noreload=myPost('noreload'); if($action=='update'){ $oldfile=myPost('oldfile'); $newfile=myPost('newfile'); myCopyFile($oldfile,$newfile); winSuccessMsg("
The File has been added ".(($noreload)?"to your home folder":"")); if(!$noreload)wrt(""); return; } $oldfile=rqst("oldfile"); $noreload=rqst("noreload"); $newfile=$gPath.$dirlink.getFile($oldfile); $oldf=_rep($oldfile,$gPath,$gRoot); $newf=_rep($newfile,$gPath,$gRoot); ?>
Existing File: 
New File: