You are not logged in.

#1 31 Mar 2016 22:48

Joey2bost
Member
Registered: 27 Mar 2016
Posts: 22

Quad Browser V.1.1

Yes, this is the redone version of the browser.  Yes we know it somewhat is the same but we have eddited it to work a little diffrent

Updated:
Fixed a bug
added settings


@echo off
cls
title Quad Browser
goto terms

:terms
cls
echo Using this batch browser means you accept the terms like
echo the following.
echo No searching for anything illegal
echo No Changing the code
echo No reposting aying it is yours
echo.
echo Do you accept the terms?
echo 1)Yes
echo 2)No
set /p pop=

if %pop% == 1 goto menu
if %pop% == 2 goto sorry
goto terms

:menu
cls
echo ///////Quad Browser///////
echo 1)Login
echo 2)Register
echo 3)Search w/ no login
echo 4)Recover
echo 5)Exit
set /p joj=

if %joj% == 1 goto login
if %joj% == 2 goto reg
if %joj% == 3 goto search_no
if %joj% == 4 goto recover
if %joj% == 5 exit
goto menu

:recover
cls
< info.sav (
  set /p user=
  set /p pass=  
  set /p email=  
)
echo We need to know if it's you 
echo Please enter all correct info 
echo.
set /p usertry=Username:
set /p emailtry=Email:
cls
goto recover_try

:recover_try
cls
if %usertry% == %user% goto rec_2
else
(goto fail2)

:rec_2
cls
if %emailtry% == %email% goto recovered
else
(goto fail2)

:recovered
cls
echo Here is your info
echo.
echo %user%
echo %pass%
echo %email% 
pause
cls
goto menu

:fail2
cls
echo You have entered the wrong information
pause
cls
goto menu

:login
cls
< info.sav (
  set /p user=
  set /p pass=  
  set /p email=  
  set /p book1=
)
cls
echo Please enter your info needed
echo.
set /p use=Username:
set /p pas=Password:
set /p ema=Email:
cls
goto check

:check
cls
if %use% == %user% goto check2
else
(goto failed)
goto check 

:check2
cls
if %pas% == %pass% goto check3
else
(goto failed)
goto check2

:check3
cls
if %ema% == %email% goto logged_in
else
(goto failed)
goto check3

:logged_in
cls
echo You are now logged in!
pause
cls
goto main 

:failed
cls
echo It seems that you entered the wrong information
echo Pleae retry again once you remeber
pause
cls
goto menu

:search_no
cls
echo You can only search keywords instead of links without registering
echo.
set /p lookup=Search:
cls
explorer "http://www.google.com/search?q=%lookup%
cls
goto menu

:reg
cls
echo Sign up for a membership for free
echo.
set /p user=Username:
set /p pass=Password:
set /p email=Email:
(
  echo %user%
  echo %pass%
  echo %email%
) > info.sav
echo.
echo Thank you, we will now send you to the main page
pause
cls
goto main

:main
cls
echo /////Main/////
echo Welcome %user%
echo.
echo 1)Search
echo 2)Help
echo 3)Notifaction
echo 4)Update
echo 5)Settings
echo 6)Logout
set /p pop=

if %pop% == 1 goto search
if %pop% == 2 goto help_main
if %pop% == 3 goto notif
if %pop% == 4 goto update
if %pop% == 5 goto settings
if %pop% == 6 goto menu
goto main

:settings
cls
echo What would you like to happen?
echo.
echo 1)Text color
echo 2)New username
echo 3)Back
set /p ll=

if %ll% == 1 goto new_text
if %ll% == 2 goto new_name
if %ll% == 3 goto main
goto settings

:new_text
cls
echo Pick a color
echo.
echo 1)Green
echo 2)White
echo 3)blue
echo 4)Back
set /p nun=

if %nun% == 1 color 0a
if %nun% == 2 color 7a
if %nun% == 3 color 1a
if %nun% == 4 goto main
goto new_text

:new_user
cls
echo Please enter a new name
echo.
set /p user=
echo Set username to %user%
pause
(
  echo %user%
  echo %pass%
  echo %email%
) > info.sav

cls
goto main

:update
cls
echo We are taking you to the page you got this code from so you 
echo can repost the code again. Please make sure it is a diffrent
echo version.
pause
explorer "http://ss64.org/viewtopic.php?pid=8975#p8975"
cls
goto main

:search
cls
echo Please choose one:
echo.
echo 1)Search Keywords
echo 2)Search Links
echo 3)Bookmarks
echo 4)Back
set /p mo=

if %mo% == 1 goto search_key
if %mo% == 2 goto search_link
if %mo% == 3 goto book_all
if %mo% == 4 goto main
goto search

:book_all
cls
echo Select one
echo.
echo 1)Book Mark
echo 2)Visit Book Mark
echo 3)Back
set /p lp=

if %lp% == 1 goto book
if %lp% == 2 goto book_vist
if %lp% == 3 goto main
goto book_all

:book_visit
cls
explorer "%book1%"
goto main 

:book
cls
echo Please enter only links
echo.
set /p book1=
echo Saved!
(
  echo %user%
  echo %pass%
  echo %email%
  echo %book1%
) > info.sav
pause
cls
goto book_all

:search_key
cls
echo Please enter a keyword
echo.
set /p search=
explorer "http://www.google.com/search?q=%search%"
cls
goto main

:search_link
cls
echo Please enter a link
echo.
set /p link=
explorer "http://%link%"
cls
goto main

:notif
cls
echo Well sorry, there is no notification function yet 
echo We are working and reaserching it
pause
cls
goto main

:help_main
cls
echo Please select one of the topics
echo.
echo 1)Searching
echo 2)Bookmarks
echo 3)Acsess Denied Problem
echo.
echo 4)Back
set /p kop=

if %kop% == 1 goto search_help
if %kop% == 2 goto book_help
if %kop% == 3 goto ADP
if %kop% == 4 goto main
goto help_main

:book_help
cls
echo Q:It doesn't save my bookmark when i leave
echo A:Well this could be a problem on either our side
echo or on your side, Your side is you could not have 
echo ran as admin which is somewhat needed just incase
echo.
echo Q:It wont go to the right website i wanted
echo A:Try entering the website again and try
pause
cls
goto help_main

:ADP
cls
echo Q:Why does it say "Acsess Denied"
echo A:This section is built for it!
echo The only awnser we could find is we either messed
echo up the code or bigger thing is that you need
echo to run as admin which yes we say this alot
pause
cls
goto help_main

:search_help
cls
echo Q:Why does it crash when i enter or search anything?
echo A:Well it could be that you did not run as admin
echo We reccommend running as admin before opening
echo.
echo Q:Why does it send me to a random place when i search
echo A:Well what we see is that we on our side have messed up
echo Just wait for our next update which may have the fix
echo.
pause
cls
goto help_main

:sorry
cls
echo We are sorry but you are not allowed to use
echo this browser without accepting the terms
pause
cls
exit

Last edited by Joey2bost (02 Apr 2016 01:44)

Offline

#2 01 Apr 2016 05:20

Shadow Thief
Member
Registered: 12 Jul 2012
Posts: 205

Re: Quad Browser V.1.1

General Notes

  • Frequent spelling/grammar errors, but better than before.

  • Invalid IF/ELSE syntax.

  • If you put quotes around both items on either side of the equals in if statements, you can use spaces.

  • Terms message is not displayed properly in a standard 80x23 command prompt window.

  • Use CHOICE instead of SET /P to get menu input.

  • Failure to enter an input when prompted (outside of the main menu) crashes the script.

  • The mask variables don't do anything.

Terms

  • Go into more detail with your terms; you can't say "like the following" and then list three completely unrelated things.

Registering

  • The feature that hid the .sav file after creation was removed - not sure if this was deliberate.

  • Entering nothing for the username, password, or email causes "ECHO is off." to be stored in your .sav file.

  • Registering overwrites any existing .sav file, meaning somebody can accidentally delete their login.

  • Password is stored in plaintext.

Recovery

  • When the .sav file is present, the "we confirm that it is you" message is displayed regardless of whether or not the information is correct.

  • Attempting to recover your account with the correct username but the incorrect email causes an infinite loop.

Login

  • Signing in with an invalid password or email causes an infinite loop.

  • If you successfully log in and then log out, you can log in again by pressing the enter key without typing anything.

Changing Info

  • You cannot change your password if your password is 1.

Bookmarks

  • The code that checks whether the bookmark exists when you go to it needs quotes on both sides of the equals sign; it currently has a syntax error that breaks the script.

  • If no bookmark is set, "ECHO is off" is displayed instead of nothing.

  • I should be able to unset a bookmark.

  • Don't prepend http:// to the bookmark; if it's already in the bookmark, there will be unexpected results.

Search

  • Your search string is missing a " at the end.

Offline

Board footer

Powered by