diff --git a/RNS/answer.php b/RNS/answer.php new file mode 100644 index 0000000..952c9c4 --- /dev/null +++ b/RNS/answer.php @@ -0,0 +1,50 @@ + + + + + + Bootstrap 101 Template + + + + + + + + + + + +
+
+
+

+ echo + $myfile = fopen("connect/cs/qus$qno/qus.txt", "r") or die("Unable to open file!"); + file_get_contents("connect/cs/qus$qno/qus.txt"); + fclose($myfile); + What's your Answer?

+ +

+ + + +
+
+
+
+
+ + + + + + + \ No newline at end of file diff --git a/RNS/body.php b/RNS/body.php index 464374e..a15714f 100644 --- a/RNS/body.php +++ b/RNS/body.php @@ -1,136 +1,36 @@ -
-
-
+
+
+
+

+
+

+

+
+

Forgot your password?

+

- +
+Do not have an account? Sign Up here. - $dbquery="SELECT count(*) FROM studentlogin - where chon >= NOW() - 300 - "; - $dbfetch=mysqli_query($dbconn,$dbquery); - if($dbfetch==false) echo $dberror; - $row=mysqli_fetch_assoc($dbfetch); - - echo $row['count(*)']; - - } - -?>

-
- +

NOTIFICATIONS

diff --git a/RNS/body1.php b/RNS/body1.php index 4f7e0ed..430f0cf 100644 --- a/RNS/body1.php +++ b/RNS/body1.php @@ -1,18 +1,27 @@ - + + + + + + + Bootstrap 101 Template - - - - -
-
- - - -
- + -
-

NOTIFICATIONS

-

+ + + + + + + + -

-
-
- - diff --git a/RNS/cbody.php b/RNS/cbody.php index 2daca28..397823e 100644 --- a/RNS/cbody.php +++ b/RNS/cbody.php @@ -33,145 +33,77 @@ for($i=1;$i<$n;$i++){ $myfile = fopen("connect/cs/qus$i/qus.txt", "r") or die("Unable to open file!"); -echo" - - - -
-
- - - - -
-
-";} + + + \ No newline at end of file diff --git a/RNS/conn.php b/RNS/conn.php index 6b0472c..68cdc7f 100644 --- a/RNS/conn.php +++ b/RNS/conn.php @@ -1,8 +1,39 @@ + + + + + + + Bootstrap 101 Template + + + + + + + + + \ No newline at end of file +?> + + + + + + + \ No newline at end of file diff --git a/RNS/connect/cs/qus1/qus.txt b/RNS/connect/cs/qus1/qus.txt index 10e30a5..b8fb542 100644 --- a/RNS/connect/cs/qus1/qus.txt +++ b/RNS/connect/cs/qus1/qus.txt @@ -1 +1 @@ -Hey there \ No newline at end of file +done? \ No newline at end of file diff --git a/RNS/connect/cs/qus2/qus.txt b/RNS/connect/cs/qus2/qus.txt index 10e30a5..0ef1af0 100644 --- a/RNS/connect/cs/qus2/qus.txt +++ b/RNS/connect/cs/qus2/qus.txt @@ -1 +1 @@ -Hey there \ No newline at end of file +done1? \ No newline at end of file diff --git a/RNS/connect/cs/qus3/qus.txt b/RNS/connect/cs/qus3/qus.txt index 10e30a5..5461fe5 100644 --- a/RNS/connect/cs/qus3/qus.txt +++ b/RNS/connect/cs/qus3/qus.txt @@ -1 +1 @@ -Hey there \ No newline at end of file +how is it? \ No newline at end of file diff --git a/RNS/cut.php b/RNS/cut.php new file mode 100644 index 0000000..6b9944d --- /dev/null +++ b/RNS/cut.php @@ -0,0 +1,130 @@ + + + +
+
+
+ + +
\ No newline at end of file diff --git a/RNS/images/1.png b/RNS/images/1.png new file mode 100644 index 0000000..292e09b Binary files /dev/null and b/RNS/images/1.png differ diff --git a/RNS/images/12.png b/RNS/images/12.png new file mode 100644 index 0000000..5e3c99d Binary files /dev/null and b/RNS/images/12.png differ diff --git a/RNS/images/2.png b/RNS/images/2.png new file mode 100644 index 0000000..4d2db90 Binary files /dev/null and b/RNS/images/2.png differ diff --git a/RNS/images/22.png b/RNS/images/22.png new file mode 100644 index 0000000..115b555 Binary files /dev/null and b/RNS/images/22.png differ diff --git a/RNS/images/3.png b/RNS/images/3.png new file mode 100644 index 0000000..0aa2bf6 Binary files /dev/null and b/RNS/images/3.png differ diff --git a/RNS/images/32.png b/RNS/images/32.png new file mode 100644 index 0000000..9fa62d3 Binary files /dev/null and b/RNS/images/32.png differ diff --git a/RNS/images/4.png b/RNS/images/4.png new file mode 100644 index 0000000..767b155 Binary files /dev/null and b/RNS/images/4.png differ diff --git a/RNS/images/42.png b/RNS/images/42.png new file mode 100644 index 0000000..5051c3d Binary files /dev/null and b/RNS/images/42.png differ diff --git a/RNS/images/5.png b/RNS/images/5.png new file mode 100644 index 0000000..55bda36 Binary files /dev/null and b/RNS/images/5.png differ diff --git a/RNS/images/52.png b/RNS/images/52.png new file mode 100644 index 0000000..ba82021 Binary files /dev/null and b/RNS/images/52.png differ diff --git a/RNS/images/6.png b/RNS/images/6.png new file mode 100644 index 0000000..5fe2c72 Binary files /dev/null and b/RNS/images/6.png differ diff --git a/RNS/images/62.png b/RNS/images/62.png new file mode 100644 index 0000000..a78f776 Binary files /dev/null and b/RNS/images/62.png differ diff --git a/RNS/images/7.png b/RNS/images/7.png new file mode 100644 index 0000000..456c878 Binary files /dev/null and b/RNS/images/7.png differ diff --git a/RNS/images/72.png b/RNS/images/72.png new file mode 100644 index 0000000..f943676 Binary files /dev/null and b/RNS/images/72.png differ diff --git a/RNS/images/8.png b/RNS/images/8.png new file mode 100644 index 0000000..91191b0 Binary files /dev/null and b/RNS/images/8.png differ diff --git a/RNS/images/82.png b/RNS/images/82.png new file mode 100644 index 0000000..6c7a198 Binary files /dev/null and b/RNS/images/82.png differ diff --git a/RNS/images/login.jpg b/RNS/images/login.jpg new file mode 100644 index 0000000..7de0520 Binary files /dev/null and b/RNS/images/login.jpg differ diff --git a/RNS/links1.php b/RNS/links1.php new file mode 100644 index 0000000..8b8aef6 --- /dev/null +++ b/RNS/links1.php @@ -0,0 +1,66 @@ + + + + + + Bootstrap 101 Template + + + + + + + + + + +
+ + +
+ + + + + \ No newline at end of file diff --git a/RNS/logedin.php b/RNS/logedin.php index 24caf99..b8deeb5 100644 --- a/RNS/logedin.php +++ b/RNS/logedin.php @@ -1,31 +1,28 @@ - - - "; - $dbquery="SELECT password,firstname,lastname FROM studentlogin + $dbquery="SELECT password,firstname,lastname,reg FROM studentlogin where usn='$usn' "; $dbfetch=mysqli_query($dbconn,$dbquery); - if($dbfetch==false) echo $dberror; - $row=mysqli_fetch_assoc($dbfetch);//WHY ASSOC? + $row=mysqli_fetch_assoc($dbfetch); if($row['password']===$pass) - { + { + if($row['reg']==$one) + { session_start(); $_SESSION["user"] = $usn; $_SESSION["fname"] = $row['firstname']; @@ -33,19 +30,22 @@ $cookie_name = "user"; $cookie_value = $usn; setcookie($cookie_name, $cookie_value, time()+30000000,'/'); // 86400 = 1 day - header("Location: http:/RNSIT/secure.php"); + header("Location: http:/cc/secure.php"); + } + else + header("Location: http:/RNSIT/nor.php"); } else - header("Location: http:/RNSIT/pop6.php"); + header("Location: http:/RNSIT/uop.php"); } - else - header("Location: http:/RNSIT/first.php"); + else + header("Location: http:/cc/index.php"); $dbconn->close(); - //header("Location: http://localhost/RNSIT/logedin.php"); + ?> \ No newline at end of file diff --git a/RNS/logout.php b/RNS/logout.php index 416a1d6..1a71291 100644 --- a/RNS/logout.php +++ b/RNS/logout.php @@ -1,8 +1,30 @@ query($sql) === TRUE) { + //echo "Record updated successfully"; + } else { + //echo "Error updating record: " . $dbconn->error; + } + + // set the expiration date to one hour ago $cookie_name = "user"; setcookie($cookie_name, "", time()-3600,'/'); - header("Location:/index.php"); - - + header("Location:/cc/index.php"); ?> diff --git a/RNS/nbody.php b/RNS/nbody.php new file mode 100644 index 0000000..46d8de5 --- /dev/null +++ b/RNS/nbody.php @@ -0,0 +1,126 @@ + + + My title + + + + +
+
+
+
+

Select Department


+ +

+

+ + + Computer Science

+ Electronics and Communication

+ Information Science

+ Mechanical

+ Instrumentation Technology

+ Civil


+
+ + + +
+
+ + + +
+
+

Select Semester

+ + + + + + + + + +
+
+
+
+ + + diff --git a/RNS/notes.php b/RNS/notes.php new file mode 100644 index 0000000..bc7bd09 --- /dev/null +++ b/RNS/notes.php @@ -0,0 +1,34 @@ + + + + + + + Bootstrap 101 Template + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RNS/pop.php b/RNS/pop.php new file mode 100644 index 0000000..d3338c9 --- /dev/null +++ b/RNS/pop.php @@ -0,0 +1,46 @@ + + + + + + + Bootstrap 101 Template + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RNS/poseq.PHP b/RNS/poseq.PHP index 4aa7769..6226dff 100644 --- a/RNS/poseq.PHP +++ b/RNS/poseq.PHP @@ -1,27 +1,33 @@ + + + + + + Bootstrap 101 Template + + + + + + + + + - - - Pose Questions - - - - - - -
-
-
- - - - -
+ +
+

+ echo file_get_contents("connect/cs/qus$qus/qus.txt"); +fclose($myfile); Select the Department:

General
Electronics and Communication
@@ -33,16 +39,19 @@ include('header.php');
What's your Question?

-

+

Notify me via mail when answered


+
+
-
- - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/RNS/rpass.php b/RNS/rpass.php index 60e8803..99eecdc 100644 --- a/RNS/rpass.php +++ b/RNS/rpass.php @@ -1,20 +1,43 @@ + + + + + Bootstrap 101 Template + + + + + + + + + - - - - -
-
- - - -
- -
-USN                 :     -

-
+
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/RNS/secure.php b/RNS/secure.php index fda30cf..7076d75 100644 --- a/RNS/secure.php +++ b/RNS/secure.php @@ -1,14 +1,14 @@ \ No newline at end of file diff --git a/RNS/sign.php b/RNS/sign.php index b6774fd..3dca191 100644 --- a/RNS/sign.php +++ b/RNS/sign.php @@ -1,32 +1,107 @@ - - - - - -
-
-
- - -
-
-
- - -

- -FIRST NAME                      :       -

LAST NAME                       :       -

USN                                      :       -

EMAIL ID                            :       - -

                                       - -
-
+ + + + + + + Bootstrap 101 Template - + + + + + + + + + + +
+ +
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+ By clicking Register, you agree to the Terms ansd Conditions set out by this site. +
+
+ +
+ +
+
+
+ +
+
+ + +
+
+ + + + + + + \ No newline at end of file diff --git a/RNS/signup.php b/RNS/signup.php index 5a337b5..8d622d7 100644 --- a/RNS/signup.php +++ b/RNS/signup.php @@ -3,27 +3,40 @@ $dbpass=""; $dbname="login"; $dberror="oops could't been able connect to the server"; -$dbconn=mysqli_connect($dbhost,$dbuser,$dbpass,$dbname) or die(header("Location: http:/RNSIT/sign.php")); +$dbconn=mysqli_connect($dbhost,$dbuser,$dbpass,$dbname) or die(header("Location: http:/cc/sign.php")); - $fname=$_GET['fname']; - $lname=$_GET['lname']; + $fname=$_GET['first_name']; + $lname=$_GET['last_name']; $usn=$_GET['usn']; $email=$_GET['email']; + $pass=$_GET['password']; + $cpass=$_GET['cpassword']; $loc=0; $ccode=rand(1000,9999); - - if($dbconn==true) - { - $sql = "INSERT INTO stemp(firstname,lastname,usn,email,ccode) - VALUES ('$fname','$lname','$usn','$email','$ccode')"; - if ($dbconn->query($sql) === TRUE) {}//WHY ARROW? - else - { $loc=1; - header("Location: http:/RNSIT/pop2.php"); + if($pass==$cpass) + { + if($dbconn==true) + { + $sql = "INSERT INTO studentlogin(firstname,lastname,usn,email,password) +VALUES ('$fname','$lname','$usn','$email','$pass')"; + if ($dbconn->query($sql) === TRUE) + { + $cookie_name = "user"; + $cookie_value = $usn; + setcookie($cookie_name, $cookie_value, time()+30000000,'/'); // 86400 = 1 day + header("Location: http:/cc/index.php"); + } + else + { + header("Location: http:/cc/errorsame details.php"); } $dbconn->close(); - } - if($loc==0) - header("Location: http:/RNSIT/rccode.php"); + } + else + header("Location: http:/cc/sign.php"); + } + else + header("Location: http:/cc/passeroor.php"); + ?> \ No newline at end of file diff --git a/RNS/social.php b/RNS/social.php new file mode 100644 index 0000000..3c3afab --- /dev/null +++ b/RNS/social.php @@ -0,0 +1,135 @@ + + + + + + + Bootstrap 101 Template + + + + + + + + + + + + +
+ + +
+ +
+
+
+ or +
+
+ +
+
+ + + +
+ + + + + + \ No newline at end of file diff --git a/RNS/try.php b/RNS/try.php index 719140c..aefe68f 100644 --- a/RNS/try.php +++ b/RNS/try.php @@ -1,74 +1,101 @@ -"; - $dbquery="SELECT count(*) FROM connect - - "; - $dbfetch=mysqli_query($dbconn,$dbquery); - if($dbfetch==false) echo $dberror; - $row=mysqli_fetch_assoc($dbfetch); - - $n=$row['count(*)']+1; - - } - -for($i=1;$i<$n;$i++){ -$myfile = fopen("connect/cs/qus$i/qus.txt", "r") or die("Unable to open file!"); -echo" - - - -
-
+
+
"; -echo fgets($myfile); -fclose($myfile); -echo "view";} -?> \ No newline at end of file +.form-signin .form-control +{ +position: relative; +font-size: 16px; +height: auto; +padding: 10px; +-webkit-box-sizing: border-box; +-moz-box-sizing: border-box; +box-sizing: border-box; +} +.form-signin .form-control:focus +{ +z-index: 2; +} +.form-signin input[type="text"] +{ +margin-bottom: -1px; +border-bottom-left-radius: 0; +border-bottom-right-radius: 0; +} +.form-signin input[type="password"] +{ +margin-bottom: 10px; +border-top-left-radius: 0; +border-top-right-radius: 0; +} +.account-wall +{ +margin-top: 20px; +padding: 40px 0px 20px 0px; +background-color: #f7f7f7; +-moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); +-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); +box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); +} +.login-title +{ +color: #555; +font-size: 18px; +font-weight: 400; +display: block; +} +.profile-img +{ +width: 96px; +height: 96px; +margin: 0 auto 10px; +display: block; +-moz-border-radius: 50%; +-webkit-border-radius: 50%; +border-radius: 50%; +} +.need-help +{ +margin-top: 10px; +} +.new-account +{ +display: block; +margin-top: 10px; +} + \ No newline at end of file diff --git a/RNS/upload.php b/RNS/upload.php new file mode 100644 index 0000000..2f2cc00 --- /dev/null +++ b/RNS/upload.php @@ -0,0 +1,100 @@ + + + + + + + Bootstrap 101 Template + + + + + + + + + + + + + + + 500000) { + ?> + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RNS/upload/NAKUL.JPG b/RNS/upload/NAKUL.JPG new file mode 100644 index 0000000..08ba66b Binary files /dev/null and b/RNS/upload/NAKUL.JPG differ diff --git a/RNS/uploadf.php b/RNS/uploadf.php new file mode 100644 index 0000000..1c909d6 --- /dev/null +++ b/RNS/uploadf.php @@ -0,0 +1,32 @@ + + + + + + + Bootstrap 101 Template + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RNS/uploadh.php b/RNS/uploadh.php new file mode 100644 index 0000000..e285579 --- /dev/null +++ b/RNS/uploadh.php @@ -0,0 +1,73 @@ + + + + +
+
+ +
+
+

NOTIFICATIONS

+

+Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +Bootstrap provides custom events for most plugins' unique actions. Generally, +

+
+
+
+ + +
+ Select image to upload: + + +
+ + +
+
+ +
+
+ + + + + + + + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..cd08755 --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +Hello world!