Advertisement
shubshub

BatchChat Forums

May 6th, 2012
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 21.17 KB | None | 0 0
  1. @echo off
  2. set version=2.1.1
  3. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\updates\Forums v%version%.zip" goto rawr
  4. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\updates\Forums v*.*.zip" goto update
  5. :update
  6. cls
  7. echo A New Update Is Availible Will You Update?
  8. cmdmenusel.exe fc0e "Yes" "No"
  9. if %errorlevel%==1 goto update1
  10. if %errorlevel%==2 exit
  11. :update1
  12. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\updates\version.bat" call "%USERPROFILE%\Dropbox\BatchChat\updates\version.bat"
  13. echo Now Updating Forums
  14. xcopy "%USERPROFILE%\Dropbox\BatchChat\updates\Forums v*.*.zip" "%CD%"
  15. extract e -tzip "%CD%\Forums v%forumversion%.zip"
  16. echo Sucsessfully Updated
  17. echo Now Exiting Client It Has Been Extracted And You Can Now Use It
  18. pause
  19. exit
  20. :rawr
  21. echo ************ NAVIGATE ***********
  22. echo KEYS: UP, DOWN, TAB, SHIFT + TAB, HOME, END, PAGE_UP, PAGE_DOWN
  23. echo MOUSE: MOUSE_HOVER, SCROLL_WHEEL
  24. echo ************ SELECT **************
  25. echo KEYS: SPACE, ENTER
  26. echo MOUSE: LEFT_CLICK
  27. echo.
  28. cmdmenusel.exe fc0e "Login" "Create Account"
  29. if %errorlevel%==1 goto login
  30. if %errorlevel%==2 goto ca
  31. :ca
  32. cls
  33. echo Type Your New Username And Password
  34. set /p fu=Username:
  35. set /p fp=Password:
  36. echo set realpass=%fp% > "%USERPROFILE%\Dropbox\BatchChat\profiles\%fu%.bat"
  37. goto rawr
  38. :login
  39. cls
  40. echo Type Your Username
  41. set /p username=Username:
  42. set /p password=Password:
  43. goto fstart
  44. pause
  45. :fstart
  46. cls
  47. title BatchChat Forums
  48. goto login
  49. :login
  50. cls
  51. set fuser=%username%
  52. set fpass=%password%
  53. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\profiles\%fuser%.bat" goto passcheck
  54. goto invalid
  55. :invalid
  56. cls
  57. echo %fuser% Is Not A Valid Username Would You Like To Create A New User
  58. set /p yn=Yes/No:
  59. if %yn%==Yes goto create
  60. if %yn%==No goto fstart
  61. :create
  62. cls
  63. echo Making Account Please Wait
  64. echo set realpass=%fpass% > "%USERPROFILE%\Dropbox\BatchChat\profiles\%fuser%.bat"
  65. echo Account Created
  66. pause
  67. goto fstart
  68. :passcheck
  69. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\profiles\%fuser%.bat" call "%USERPROFILE%\Dropbox\BatchChat\profiles\%fuser%.bat"
  70. if %fpass%==%realpass% goto f1
  71. goto pinvalid
  72. :pinvalid
  73. cls
  74. echo InValid Password
  75. pause
  76. goto login
  77. :f1
  78. echo Welcome Back %username%
  79. pause
  80. goto ~forums
  81. :~forums
  82. cls
  83. IF EXIST "%CD%\posts.bat" call "%CD%\posts.bat"
  84. IF EXIST "%CD%\PROFILE.BAT" call "%CD%\PROFILE.BAT"
  85. set username=%fuser%
  86. :rank
  87. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-ADMIN\%username%.rank" goto setrank
  88. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-MOD\%username%.rank" goto setrank
  89. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-FOREMAN\%username%.rank" goto setrank
  90. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\ADMIN\%username%.rank" goto setrank
  91. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MOD\%username%.rank" goto setrank
  92. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MEMBER\%username%.rank" goto setrank
  93. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank" goto setrank
  94. echo > "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank"
  95. :setrank
  96. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-ADMIN\%username%.rank" set rank=GLOBAL-ADMIN
  97. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-MOD\%username%.rank" set rank=GLOBAL-MOD
  98. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-FOREMAN\%username%.rank" set rank=GLOBAL-FOREMAN
  99. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\ADMIN\%username%.rank" set rank=ADMIN
  100. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MOD\%username%.rank" set rank=MOD
  101. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MEMBER\%username%.rank" set rank=MEMBER
  102. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank" set rank=GUEST
  103. :rank2
  104. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-ADMIN\%username%.rank" goto setrank
  105. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-MOD\%username%.rank" goto setrank
  106. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-FOREMAN\%username%.rank" goto setrank
  107. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\ADMIN\%username%.rank" goto setrank
  108. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MOD\%username%.rank" goto setrank
  109. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MEMBER\%username%.rank" goto setrank
  110. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank" goto setrank
  111. echo > "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank"
  112. :setrank
  113. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-ADMIN\%username%.rank" set rank=GLOBAL-ADMIN
  114. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-MOD\%username%.rank" set rank=GLOBAL-MOD
  115. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GLOBAL-FOREMAN\%username%.rank" set rank=GLOBAL-FOREMAN
  116. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\ADMIN\%username%.rank" set rank=ADMIN
  117. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MOD\%username%.rank" set rank=MOD
  118. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\MEMBER\%username%.rank" set rank=MEMBER
  119. if exist "%USERPROFILE%\Dropbox\Batchchat\Permissions\GUEST\%username%.rank" set rank=GUEST
  120. echo Your Current Post Count Is: %post%
  121. echo.
  122. echo Type The Name Of The Forum You Wish To Enter
  123. echo Type ~newforum To Create A New Forum Section (Admins Only)
  124. echo Type ~profile To Go To Your Profile
  125. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\list.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\list.txt"
  126. IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\list.txt" echo Error With The Forums Should Be Fixed Soon
  127. echo.
  128. set /p forum=Forum:
  129. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\" goto threads
  130. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\%forum%.cmnd" goto %forum%
  131. IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\" echo Forum Section: %forum% Does Not Exist
  132. IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\" goto ~forums
  133. :threads
  134. cls
  135. echo Current Forum: %forum%
  136. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\description.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\description.txt"
  137. echo Type The Name Of The Thread You Wish To Veiw (Dont Include The .txt)
  138. echo (Admins Only) type ~move To Move A Thread
  139. echo Type ~create To Make A New Thread
  140. echo Type ~forums To Go Back To Forums Main Area
  141. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
  142. echo.
  143. set /p thread=Thread:
  144. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\fcommands\%thread%.cmnd" goto %thread%
  145. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt" goto veiw
  146. goto threads
  147. :veiw
  148. cls
  149. echo Currently Veiwing Thread: %thread%
  150. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\poll.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\poll.txt"
  151. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat"
  152. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat"
  153. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat"
  154. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\poll.txt" echo Current Votes:
  155. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat" echo 1. %pone%
  156. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat" echo 2. %ptwo%
  157. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat" echo 3. %pthree%
  158. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
  159. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\locked.lock" echo THIS THREAD IS LOCKED
  160. echo If A Poll Exists Type ~vote To Vote On A Poll
  161. echo If Your An Admin Type ~pollreset To reset Polls
  162. echo If Your An Admin Type ~rename To Rename %thread%
  163. echo Admins Can Type ~delete To Delete %thread%
  164. echo Admins Type ~lock To Lock This Thread
  165. echo Admins Type ~unlock To UnLock This Thread If It Is Locked
  166. echo Type ~report To Report Thread
  167. echo Type ~post to Send A New Post
  168. echo Type ~back To Return to Threads
  169. set /p option=Command:
  170. if %option%==~delete goto tdelete
  171. if %option%==~unlock goto unlock
  172. if %option%==~lock goto lock
  173. if %option%==~report goto report
  174. if %option%==~rename goto rthread
  175. if %option%==~pollreset goto resetpolls
  176. if %option%==~vote goto pollvote
  177. if %option%==~post goto newpost
  178. if %option%==~back goto threads
  179. goto veiw
  180. :~create
  181. echo Creating New Thread In: %forum%
  182. echo Type The Name Of Your Thread
  183. set /p tname=Thread Name:
  184. echo Type What You Want Your Thread To Say
  185. set /p tmessage=
  186. goto make
  187. :make
  188. echo Making Thread Please Wait...
  189. mkdir "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%"
  190. set /a vpost=%post%+1
  191. echo set post=%vpost% > "posts.bat"
  192. echo %tname% Created By %username% > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
  193. mkdir "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\lock"
  194. echo %avatar1% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
  195. echo %avatar2% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
  196. echo %avatar3% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
  197. echo %username%'s Post Count: %post% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
  198. echo %username% Posted On %date% at %time%: %tmessage% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\%tname%.txt"
  199. echo %tname% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
  200. echo Thread Sucsessfully Created
  201. echo Before You Return To The Forums Are Would You Like to Add A Poll
  202. set /p polladd=Yes/No:
  203. if %polladd%==Yes goto makepoll
  204. if %polladd%==No goto ~forums
  205. goto ~forums
  206. pause
  207. :newpost
  208. cls
  209. if %rank%==GLOBAL-ADMIN goto newposty
  210. if %rank%==FORUM-ADMIN goto newposty
  211. if %rank%==GLOBAL-MOD goto newposty
  212. if %rank%==FORUM-MOD goto newposty
  213. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\locked.lock" goto locked
  214. :newposty
  215. cls
  216. echo Creating New Post In Thread: %thread%
  217. echo Type Your Post Please
  218. set /p tpost=Post:
  219. set /a vpost=%post%+1
  220. echo set post=%vpost% > "posts.bat"
  221. echo. >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
  222. echo %username% Posted On %date% at %time%: %tpost% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
  223. echo %avatar1% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
  224. echo %avatar2% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
  225. echo %avatar3% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
  226. echo %username%'s Post Count: %post% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
  227. echo [%rank%]%username% Has Posted In %thread% Under %forum% >> "%USERPROFILE%\Dropbox\BatchChat\chat.txt"
  228. echo Post Sucsessfully Created Returning To Forums Area
  229. pause
  230. goto veiw
  231. :makepoll
  232. cls
  233. echo Now Making Poll For Thread: %tname%
  234. echo Type What You Want The Poll To Say
  235. set /p pollmessage=Message:
  236. goto makepoll2
  237. :makepoll2
  238. cls
  239. echo Type The Options For The Poll
  240. echo Meaning type what the Message is for each Option
  241. set /p optionf=Option1:
  242. set /p options=Option2:
  243. set /p optiont=Option3:
  244. echo Now Creating Poll For Thread: %tname%
  245. echo %pollmessage% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\poll.txt"
  246. echo. >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\poll.txt"
  247. echo 1. %optionf% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\poll.txt"
  248. echo 2. %options% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\poll.txt"
  249. echo 3. %optiont% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\poll.txt"
  250. echo set pone=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\first.bat"
  251. echo set ptwo=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\second.bat"
  252. echo set pthree=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\third.bat"
  253. mkdir "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%tname%\voted\"
  254. echo Poll Made Sucsessfully
  255. pause
  256. goto ~forums
  257. :pollvote
  258. cls
  259. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\voted\%username%.voted" goto vote_error
  260. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\poll.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\poll.txt"
  261. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat"
  262. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat"
  263. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat" call "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat"
  264. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat" echo 1. %pone%
  265. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat" echo 2. %ptwo%
  266. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat" echo 3. %pthree%
  267. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt" type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt"
  268. echo.
  269. echo Which One Will You Vote On? 1 2 Or 3
  270. set /p voteon=Vote On:
  271. if %voteon%==1 goto vote1
  272. if %voteon%==2 goto vote2
  273. if %voteon%==3 goto vote3
  274. goto pollvote
  275. :vote1
  276. cls
  277. set /a v1=%pone%+1
  278. echo set pone=%v1% > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat"
  279. echo Poll Vote Placed Sucsessfully
  280. pause
  281. goto placed
  282. :vote2
  283. cls
  284. set /a v2=%ptwo%+1
  285. echo set ptwo=%v2% > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat"
  286. echo Poll Vote Placed Sucsessfully
  287. pause
  288. goto placed
  289. :vote3
  290. cls
  291. set /a v3=%pthree%+1
  292. echo set pthree=%v3% > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat"
  293. echo Poll Vote Placed Sucsessfully
  294. pause
  295. goto placed
  296. :~newforum
  297. cls
  298. echo Creating New Forum Section
  299. echo Type The Name Of The New Forum Section
  300. set /p fsection=Section Name:
  301. goto newforum2
  302. :newforum2
  303. echo Type The Description Of The Forum
  304. set /p description=Description:
  305. echo Now Creating Forum Section: %fsection%
  306. mkdir "%USERPROFILE%\Dropbox\BatchChat\forums\%fsection%"
  307. echo %fsection% >> "%USERPROFILE%\Dropbox\BatchChat\forums\list.txt"
  308. echo %description% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%fsection%\description.txt"
  309. echo [%rank%]%username% Created A New Forum Section Called %fsection% >> "%USERPROFILE%\Dropbox\BatchChat\chat.txt"
  310. echo Forum Section Created Sucsessfully
  311. pause
  312. goto ~forums
  313. :~move
  314. echo Type The Name Of The Thread You Wish To Move Out Of %forum%
  315. echo Here Is A List Of Threads In The Forum
  316. type "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
  317. set /p movewhat=Move Which Thread:
  318. set /p moveto=Move To Where:
  319. goto moving
  320. :moving
  321. cls
  322. echo Now Moving %movewhat% To %moveto%
  323. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%moveto%\" xcopy "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%movewhat%\*" "%USERPROFILE%\Dropbox\BatchChat\forums\%moveto%\%movewhat%\"
  324. IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%moveto%\" goto move_error
  325. ECHO Y|del "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%movewhat%\*"
  326. ECHO Y|rmdir "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%movewhat%\"
  327. EDIT "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
  328. echo %movewhat% >> "%USERPROFILE%\Dropbox\BatchChat\forums\%moveto%\threads.txt"
  329. echo Moved Sucsessfully
  330. pause
  331. goto threads
  332. :move_error
  333. cls
  334. echo %moveto% Does Not Exist
  335. pause
  336. goto threads
  337. :placed
  338. cls
  339. echo I VOTED > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\voted\%username%.voted"
  340. goto threads
  341. :vote_error
  342. cls
  343. echo You Have Already Voted On This Poll You Cant Vote Again
  344. pause
  345. goto veiw
  346. :resetpolls
  347. IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\reset.txt" goto veiw
  348. echo Resetting Polls
  349. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat" goto dopoll1
  350. :reset2
  351. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat" goto dopoll2
  352. :reset3
  353. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat" goto dopoll3
  354. :reset4
  355. echo Finished Resetting Polls
  356. echo [%rank%]%username% Reset The Polls In %thread% Under %forum% >> "%USERPROFILE%\Dropbox\BatchChat\chat.txt"
  357. pause
  358. goto veiw
  359. :dopoll1
  360. echo set pone=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\first.bat"
  361. goto reset2
  362. :dopoll2
  363. echo set ptwo=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\second.bat"
  364. goto reset3
  365. :dopoll3
  366. echo set pthree=0 > "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\third.bat"
  367. goto reset4
  368. :rthread
  369. IF EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\~rename.cmnd" goto renameyes
  370. echo ERROR RENAMING THREADS
  371. pause
  372. goto veiw
  373. :renameyes
  374. cls
  375. echo Rename %thread% To What?
  376. set /p ntname=New Thread Name:
  377. if exist "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\" mkdir "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%ntname%\"
  378. MOVE "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\%thread%.txt" "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%ntname%\%ntname%.txt"
  379. MOVE "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock" "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%ntname%\lock"
  380. rd "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\"
  381. EDIT "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
  382. ECHO RENAMED %thread TO %ntname% SUCSESSFULLY
  383. set thread=%ntname%
  384. pause
  385. goto veiw
  386. :~profile
  387. cls
  388. echo Welcome To Your Profile
  389. echo Username: %username%
  390. IF EXIST "PROFILE.BAT" call "PROFILE.BAT"
  391. IF EXIST "posts.bat" call "posts.bat"
  392. echo Your Avatar:
  393. echo.
  394. echo %avatar1%
  395. echo %avatar2%
  396. echo %avatar3%
  397. echo.
  398. echo About Me: %aboutme%
  399. echo.
  400. echo Rank: %rank%
  401. echo.
  402. echo Posts Made: %post%
  403. echo.
  404. echo Type ~edit To Edit Your Profile
  405. echo Type ~back to Return to The Forums
  406. echo.
  407. set /p opprofile=Command:
  408. if %opprofile%==~edit goto editprofile
  409. if %opprofile%==~back goto ~forums
  410. goto ~profile
  411. pause
  412. :editprofile
  413. cls
  414. echo Now Editing Profile
  415. echo.
  416. echo Do You Wish To Edit Your Avatar
  417. set /p yn2=Yes/No:
  418. if %yn2%==Yes goto editavatar
  419. if %yn2%==No goto editabout
  420. :editavatar
  421. echo Edit Your Avatar Line By Line (Maximum 3 Lines)
  422. set /p avatar1=Line1:
  423. echo Line 2
  424. set /p avatar2=Line2:
  425. echo Line 3
  426. set /p avatar3=Line3:
  427. echo.
  428. ping localhost >nul
  429. :editabout
  430. cls
  431. echo Do You wish to Edit About Me?
  432. set /p yn3=Yes/No:
  433. if %yn3%==Yes goto aboutedit
  434. if %yn3%==No goto saveprofile
  435. :aboutedit
  436. cls
  437. echo Now Editing About Me
  438. set /p aboutme=About Me:
  439. goto saveprofile
  440. :saveprofile
  441. echo set avatar1=%avatar1% > "%CD%\PROFILE.BAT"
  442. echo set avatar2=%avatar2% >> "%CD%\PROFILE.BAT"
  443. echo set avatar3=%avatar3% >> "%CD%\PROFILE.BAT"
  444. echo set aboutme=%aboutme% >> "%CD%\PROFILE.BAT"
  445. echo Finished Editing Profile
  446. pause
  447. goto ~forums
  448. :lock
  449. echo Are You Sure You Wish To Lock This Thread
  450. echo %thread%
  451. set /p yn4=Yes/No:
  452. if %yn4%==Yes goto locktrue
  453. if %yn4%==No goto lockfalse
  454. goto lock
  455. :locktrue
  456. IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\lock.cmnd" goto lock_error
  457. echo Locked %thread% Sucsessfully
  458. echo. >> "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\locked.lock"
  459. pause
  460. goto veiw
  461. :lockfalse
  462. goto veiw
  463. pause
  464. :locked
  465. cls
  466. echo %thread% Is Locked You Can Not Post In It
  467. pause
  468. goto veiw
  469. :lock_error
  470. cls
  471. echo You Do Not Have Permission To Do This
  472. pause
  473. goto veiw
  474. :report
  475. echo Type The Reason Why You Are Reporting %thread%?
  476. set /p reason=Reason:
  477. echo %username% Reported %thread% on %date% at %time% Because: %reason% >> "%USERPROFILE%\Dropbox\BatchChat\report\%username%'s Report.txt"
  478. echo Reported Sucsessfully
  479. pause
  480. goto veiw
  481. :unlock
  482. IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\unlock.cmnd" goto lock_error
  483. echo Are You Sure You Wish To Unlock %thread%?
  484. set /p yn5=Yes/No
  485. if %yn5%==Yes goto unlocktrue
  486. if %yn5%==No goto unlockfalse
  487. goto unlock
  488. :unlocktrue
  489. del "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\locked.lock"
  490. echo Unlocked Sucsessfully
  491. pause
  492. goto veiw
  493. :unlockfalse
  494. cls
  495. goto veiw
  496. pause
  497. :tdelete
  498. cls
  499. IF NOT EXIST "%USERPROFILE%\Dropbox\BatchChat\Permissions\%rank%\forum\delete.cmnd" goto lock_error
  500. set /p yn6=Are You Sure You Wish To Delete This Thread Yes/No:
  501. if %yn6%==Yes goto delyes
  502. if %yn6%==No goto veiw
  503. goto tdelete
  504. :delyes
  505. cls
  506. echo Now Deleting %thread%
  507. del "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%"
  508. del "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\"
  509. rd "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\lock\"
  510. del "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\voted\"
  511. rd "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%\voted\"
  512. rd "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\%thread%"
  513. EDIT "%USERPROFILE%\Dropbox\BatchChat\forums\%forum%\threads.txt"
  514. echo DELETED SUCSESSFULLLY
  515. pause
  516. goto threads
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement