Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set version=2.1.1
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\updates\Forums v%version%.zip" goto rawr
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\updates\Forums v*.*.zip" goto update
- :update
- cls
- echo A New Update Is Availible Will You Update?
- cmdmenusel.exe fc0e "Yes" "No"
- if %errorlevel%==1 goto update1
- if %errorlevel%==2 exit
- :update1
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\updates\version.bat" call "%USERPROFILE%\Dropbox\BatchChat\updates\version.bat"
- echo Now Updating Forums
- xcopy "%USERPROFILE%\Dropbox\BatchChat\updates\Forums v*.*.zip" "%CD%"
- extract e -tzip "%CD%\Forums v%forumversion%.zip"
- echo Sucsessfully Updated
- echo Now Exiting Client It Has Been Extracted And You Can Now Use It
- pause
- exit
- :rawr
- echo ************ NAVIGATE ***********
- echo KEYS: UP, DOWN, TAB, SHIFT + TAB, HOME, END, PAGE_UP, PAGE_DOWN
- echo MOUSE: MOUSE_HOVER, SCROLL_WHEEL
- echo ************ SELECT **************
- echo KEYS: SPACE, ENTER
- echo MOUSE: LEFT_CLICK
- echo.
- cmdmenusel.exe fc0e "Login" "Create Account"
- if %errorlevel%==1 goto login
- if %errorlevel%==2 goto ca
- :ca
- cls
- echo Type Your New Username And Password
- set /p fu=Username:
- set /p fp=Password:
- echo set realpass=%fp% > "%USERPROFILE%\Dropbox\BatchChat\profiles\%fu%.bat"
- goto rawr
- :login
- cls
- echo Type Your Username
- set /p username=Username:
- set /p password=Password:
- goto fstart
- pause
- :fstart
- cls
- title BatchChat Forums
- goto login
- :login
- cls
- set fuser=%username%
- set fpass=%password%
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\profiles\%fuser%.bat" goto passcheck
- goto invalid
- :invalid
- cls
- echo %fuser% Is Not A Valid Username Would You Like To Create A New User
- set /p yn=Yes/No:
- if %yn%==Yes goto create
- if %yn%==No goto fstart
- :create
- cls
- echo Making Account Please Wait
- echo set realpass=%fpass% > "%USERPROFILE%\Dropbox\BatchChat\profiles\%fuser%.bat"
- echo Account Created
- pause
- goto fstart
- :passcheck
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\profiles\%fuser%.bat" call "%USERPROFILE%\Dropbox\BatchChat\profiles\%fuser%.bat"
- if %fpass%==%realpass% goto f1
- goto pinvalid
- :pinvalid
- cls
- echo InValid Password
- pause
- goto login
- :f1
- echo Welcome Back %username%
- pause
- goto ~forums
- :~forums
- cls
- IF EXIST "%CD%\posts.bat" call "%CD%\posts.bat"
- IF EXIST "%CD%\PROFILE.BAT" call "%CD%\PROFILE.BAT"
- set username=%fuser%
- :rank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-ADMIN\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-MOD\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-FOREMAN\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\ADMIN\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MOD\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MEMBER\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank" goto setrank
- echo > "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank"
- :setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-ADMIN\%username%.rank" set rank=GLOBAL-ADMIN
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-MOD\%username%.rank" set rank=GLOBAL-MOD
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-FOREMAN\%username%.rank" set rank=GLOBAL-FOREMAN
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\ADMIN\%username%.rank" set rank=ADMIN
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MOD\%username%.rank" set rank=MOD
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MEMBER\%username%.rank" set rank=MEMBER
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank" set rank=GUEST
- :rank2
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-ADMIN\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-MOD\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-FOREMAN\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\ADMIN\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MOD\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MEMBER\%username%.rank" goto setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank" goto setrank
- echo > "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank"
- :setrank
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-ADMIN\%username%.rank" set rank=GLOBAL-ADMIN
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-MOD\%username%.rank" set rank=GLOBAL-MOD
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-FOREMAN\%username%.rank" set rank=GLOBAL-FOREMAN
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\ADMIN\%username%.rank" set rank=ADMIN
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MOD\%username%.rank" set rank=MOD
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MEMBER\%username%.rank" set rank=MEMBER
- if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank" set rank=GUEST
- echo Your Current Post Count Is: %post%
- echo.
- echo Type The Name Of The Forum You Wish To Enter
- echo Type ~newforum To Create A New Forum Section (Admins Only)
- echo Type ~profile To Go To Your Profile
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\list.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\list.txt"
- IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\list.txt" echo Error With The Forums Should Be Fixed Soon
- echo.
- set /p forum=Forum:
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\" goto threads
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\%forum%.cmnd" goto %forum%
- IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\" echo Forum Section: %forum% Does Not Exist
- IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\" goto ~forums
- :threads
- cls
- echo Current Forum: %forum%
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\description.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\description.txt"
- echo Type The Name Of The Thread You Wish To Veiw (Dont Include The .txt)
- echo (Admins Only) type ~move To Move A Thread
- echo Type ~create To Make A New Thread
- echo Type ~forums To Go Back To Forums Main Area
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
- echo.
- set /p thread=Thread:
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\fcommands\%thread%.cmnd" goto %thread%
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt" goto veiw
- goto threads
- :veiw
- cls
- echo Currently Veiwing Thread: %thread%
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\poll.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\poll.txt"
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat"
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat"
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat"
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\poll.txt" echo Current Votes:
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat" echo 1. %pone%
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat" echo 2. %ptwo%
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat" echo 3. %pthree%
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\locked.lock" echo THIS THREAD IS LOCKED
- echo If A Poll Exists Type ~vote To Vote On A Poll
- echo If Your An Admin Type ~pollreset To reset Polls
- echo If Your An Admin Type ~rename To Rename %thread%
- echo Admins Can Type ~delete To Delete %thread%
- echo Admins Type ~lock To Lock This Thread
- echo Admins Type ~unlock To UnLock This Thread If It Is Locked
- echo Type ~report To Report Thread
- echo Type ~post to Send A New Post
- echo Type ~back To Return to Threads
- set /p option=Command:
- if %option%==~delete goto tdelete
- if %option%==~unlock goto unlock
- if %option%==~lock goto lock
- if %option%==~report goto report
- if %option%==~rename goto rthread
- if %option%==~pollreset goto resetpolls
- if %option%==~vote goto pollvote
- if %option%==~post goto newpost
- if %option%==~back goto threads
- goto veiw
- :~create
- echo Creating New Thread In: %forum%
- echo Type The Name Of Your Thread
- set /p tname=Thread Name:
- echo Type What You Want Your Thread To Say
- set /p tmessage=
- goto make
- :make
- echo Making Thread Please Wait...
- mkdir "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%"
- set /a vpost=%post%+1
- echo set post=%vpost% > "posts.bat"
- echo %tname% Created By %username% > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
- mkdir "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\lock"
- echo %avatar1% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
- echo %avatar2% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
- echo %avatar3% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
- echo %username%'s Post Count: %post% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
- echo %username% Posted On %date% at %time%: %tmessage% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
- echo %tname% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
- echo Thread Sucsessfully Created
- echo Before You Return To The Forums Are Would You Like to Add A Poll
- set /p polladd=Yes/No:
- if %polladd%==Yes goto makepoll
- if %polladd%==No goto ~forums
- goto ~forums
- pause
- :newpost
- cls
- if %rank%==GLOBAL-ADMIN goto newposty
- if %rank%==FORUM-ADMIN goto newposty
- if %rank%==GLOBAL-MOD goto newposty
- if %rank%==FORUM-MOD goto newposty
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\locked.lock" goto locked
- :newposty
- cls
- echo Creating New Post In Thread: %thread%
- echo Type Your Post Please
- set /p tpost=Post:
- set /a vpost=%post%+1
- echo set post=%vpost% > "posts.bat"
- echo. >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
- echo %username% Posted On %date% at %time%: %tpost% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
- echo %avatar1% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
- echo %avatar2% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
- echo %avatar3% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
- echo %username%'s Post Count: %post% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
- echo [%rank%]%username% Has Posted In %thread% Under %forum% >> "%USERPROFILE%\Dropbox\BatchChat\chat.txt"
- echo Post Sucsessfully Created Returning To Forums Area
- pause
- goto veiw
- :makepoll
- cls
- echo Now Making Poll For Thread: %tname%
- echo Type What You Want The Poll To Say
- set /p pollmessage=Message:
- goto makepoll2
- :makepoll2
- cls
- echo Type The Options For The Poll
- echo Meaning type what the Message is for each Option
- set /p optionf=Option1:
- set /p options=Option2:
- set /p optiont=Option3:
- echo Now Creating Poll For Thread: %tname%
- echo %pollmessage% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\poll.txt"
- echo. >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\poll.txt"
- echo 1. %optionf% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\poll.txt"
- echo 2. %options% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\poll.txt"
- echo 3. %optiont% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\poll.txt"
- echo set pone=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\first.bat"
- echo set ptwo=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\second.bat"
- echo set pthree=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\third.bat"
- mkdir "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\voted\"
- echo Poll Made Sucsessfully
- pause
- goto ~forums
- :pollvote
- cls
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\voted\%username%.voted" goto vote_error
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\poll.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\poll.txt"
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat"
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat"
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat"
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat" echo 1. %pone%
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat" echo 2. %ptwo%
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat" echo 3. %pthree%
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
- echo.
- echo Which One Will You Vote On? 1 2 Or 3
- set /p voteon=Vote On:
- if %voteon%==1 goto vote1
- if %voteon%==2 goto vote2
- if %voteon%==3 goto vote3
- goto pollvote
- :vote1
- cls
- set /a v1=%pone%+1
- echo set pone=%v1% > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat"
- echo Poll Vote Placed Sucsessfully
- pause
- goto placed
- :vote2
- cls
- set /a v2=%ptwo%+1
- echo set ptwo=%v2% > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat"
- echo Poll Vote Placed Sucsessfully
- pause
- goto placed
- :vote3
- cls
- set /a v3=%pthree%+1
- echo set pthree=%v3% > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat"
- echo Poll Vote Placed Sucsessfully
- pause
- goto placed
- :~newforum
- cls
- echo Creating New Forum Section
- echo Type The Name Of The New Forum Section
- set /p fsection=Section Name:
- goto newforum2
- :newforum2
- echo Type The Description Of The Forum
- set /p description=Description:
- echo Now Creating Forum Section: %fsection%
- mkdir "%USERPROFILE%\Dropbox\BatchChat\forums\%fsection%"
- echo %fsection% >> "%USERPROFILE%\Dropbox\BatchChat\forums\list.txt"
- echo %description% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%fsection%\description.txt"
- echo [%rank%]%username% Created A New Forum Section Called %fsection% >> "%USERPROFILE%\Dropbox\BatchChat\chat.txt"
- echo Forum Section Created Sucsessfully
- pause
- goto ~forums
- :~move
- echo Type The Name Of The Thread You Wish To Move Out Of %forum%
- echo Here Is A List Of Threads In The Forum
- type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
- set /p movewhat=Move Which Thread:
- set /p moveto=Move To Where:
- goto moving
- :moving
- cls
- echo Now Moving %movewhat% To %moveto%
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%moveto%\" xcopy "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%movewhat%\*" "%USERPROFILE%\Dropbox\BatchChat\forums\%moveto%\%movewhat%\"
- IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%moveto%\" goto move_error
- ECHO Y|del "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%movewhat%\*"
- ECHO Y|rmdir "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%movewhat%\"
- EDIT "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
- echo %movewhat% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%moveto%\threads.txt"
- echo Moved Sucsessfully
- pause
- goto threads
- :move_error
- cls
- echo %moveto% Does Not Exist
- pause
- goto threads
- :placed
- cls
- echo I VOTED > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\voted\%username%.voted"
- goto threads
- :vote_error
- cls
- echo You Have Already Voted On This Poll You Cant Vote Again
- pause
- goto veiw
- :resetpolls
- IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\reset.txt" goto veiw
- echo Resetting Polls
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat" goto dopoll1
- :reset2
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat" goto dopoll2
- :reset3
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat" goto dopoll3
- :reset4
- echo Finished Resetting Polls
- echo [%rank%]%username% Reset The Polls In %thread% Under %forum% >> "%USERPROFILE%\Dropbox\BatchChat\chat.txt"
- pause
- goto veiw
- :dopoll1
- echo set pone=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat"
- goto reset2
- :dopoll2
- echo set ptwo=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat"
- goto reset3
- :dopoll3
- echo set pthree=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat"
- goto reset4
- :rthread
- IF EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\~rename.cmnd" goto renameyes
- echo ERROR RENAMING THREADS
- pause
- goto veiw
- :renameyes
- cls
- echo Rename %thread% To What?
- set /p ntname=New Thread Name:
- if exist "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\" mkdir "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%ntname%\"
- MOVE "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt" "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%ntname%\%ntname%.txt"
- MOVE "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock" "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%ntname%\lock"
- rd "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\"
- EDIT "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
- ECHO RENAMED %thread TO %ntname% SUCSESSFULLY
- set thread=%ntname%
- pause
- goto veiw
- :~profile
- cls
- echo Welcome To Your Profile
- echo Username: %username%
- IF EXIST "PROFILE.BAT" call "PROFILE.BAT"
- IF EXIST "posts.bat" call "posts.bat"
- echo Your Avatar:
- echo.
- echo %avatar1%
- echo %avatar2%
- echo %avatar3%
- echo.
- echo About Me: %aboutme%
- echo.
- echo Rank: %rank%
- echo.
- echo Posts Made: %post%
- echo.
- echo Type ~edit To Edit Your Profile
- echo Type ~back to Return to The Forums
- echo.
- set /p opprofile=Command:
- if %opprofile%==~edit goto editprofile
- if %opprofile%==~back goto ~forums
- goto ~profile
- pause
- :editprofile
- cls
- echo Now Editing Profile
- echo.
- echo Do You Wish To Edit Your Avatar
- set /p yn2=Yes/No:
- if %yn2%==Yes goto editavatar
- if %yn2%==No goto editabout
- :editavatar
- echo Edit Your Avatar Line By Line (Maximum 3 Lines)
- set /p avatar1=Line1:
- echo Line 2
- set /p avatar2=Line2:
- echo Line 3
- set /p avatar3=Line3:
- echo.
- ping localhost >nul
- :editabout
- cls
- echo Do You wish to Edit About Me?
- set /p yn3=Yes/No:
- if %yn3%==Yes goto aboutedit
- if %yn3%==No goto saveprofile
- :aboutedit
- cls
- echo Now Editing About Me
- set /p aboutme=About Me:
- goto saveprofile
- :saveprofile
- echo set avatar1=%avatar1% > "%CD%\PROFILE.BAT"
- echo set avatar2=%avatar2% >> "%CD%\PROFILE.BAT"
- echo set avatar3=%avatar3% >> "%CD%\PROFILE.BAT"
- echo set aboutme=%aboutme% >> "%CD%\PROFILE.BAT"
- echo Finished Editing Profile
- pause
- goto ~forums
- :lock
- echo Are You Sure You Wish To Lock This Thread
- echo %thread%
- set /p yn4=Yes/No:
- if %yn4%==Yes goto locktrue
- if %yn4%==No goto lockfalse
- goto lock
- :locktrue
- IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\lock.cmnd" goto lock_error
- echo Locked %thread% Sucsessfully
- echo. >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\locked.lock"
- pause
- goto veiw
- :lockfalse
- goto veiw
- pause
- :locked
- cls
- echo %thread% Is Locked You Can Not Post In It
- pause
- goto veiw
- :lock_error
- cls
- echo You Do Not Have Permission To Do This
- pause
- goto veiw
- :report
- echo Type The Reason Why You Are Reporting %thread%?
- set /p reason=Reason:
- echo %username% Reported %thread% on %date% at %time% Because: %reason% >> "%USERPROFILE%\Dropbox\BatchChat\report\%username%'s Report.txt"
- echo Reported Sucsessfully
- pause
- goto veiw
- :unlock
- IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\unlock.cmnd" goto lock_error
- echo Are You Sure You Wish To Unlock %thread%?
- set /p yn5=Yes/No
- if %yn5%==Yes goto unlocktrue
- if %yn5%==No goto unlockfalse
- goto unlock
- :unlocktrue
- del "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\locked.lock"
- echo Unlocked Sucsessfully
- pause
- goto veiw
- :unlockfalse
- cls
- goto veiw
- pause
- :tdelete
- cls
- IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\delete.cmnd" goto lock_error
- set /p yn6=Are You Sure You Wish To Delete This Thread Yes/No:
- if %yn6%==Yes goto delyes
- if %yn6%==No goto veiw
- goto tdelete
- :delyes
- cls
- echo Now Deleting %thread%
- del "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%"
- del "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\"
- rd "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\"
- del "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\voted\"
- rd "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\voted\"
- rd "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%"
- EDIT "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
- echo DELETED SUCSESSFULLLY
- pause
- goto threads
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement