Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions RNS/answer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>

<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">


<script src="js/html5shiv.min.js"></script>
<script src="js/respond.min.js"></script>

</head>
<?php
include('header.php');
include('links1.php');
session_start();
if(!isset($_COOKIE['user'])) {
header("Location: /index.php");
}
?>
<body>
<div class="col-lg-8 col-md-8 col-sm-8 col-sm-offset-2 col-md-offset-3 col-lg-offset-2">
<div class="well">
<fieldset >
<form action="submita.php" method="GET"><br>
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? <br><br>

<textarea name="question" style="width: 250px; height: 150px;" placeholder="enter your QUESTION here...max in 140 characters" required></textarea><br><br>
<input type="hidden" value="<?php echo $usn ?>" name="usn">
<input type="hidden" value="<?php echo $qno ?>" name="qno">

<input type="submit" name="submit" value="Submit"/><br>
</form>
</fieldset >
</div>
</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
140 changes: 20 additions & 120 deletions RNS/body.php
Original file line number Diff line number Diff line change
@@ -1,136 +1,36 @@
<html>
<head>
<style>

.form-signin
{
max-width: 330px;
padding: 15px;
margin: 0 auto;
}
.form-signin .form-signin-heading, .form-signin .checkbox
{
margin-bottom: 10px;
}
.form-signin .checkbox
{
font-weight: normal;
}
.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
input[type="text"]
{
width: 96px;
height: 96px;
margin: 0 auto 10px;
display: block;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
font-size:18px;
}
.need-help
input[type="password"]
{
margin-top: 10px;
font-size:18px;
}
.new-account
{
display: block;
margin-top: 10px;
}

</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-lg-4 col-sm-4 col-md-4 ">
<div class="row" >
<div class=" col-lg-4 col-md-8 col-sm-8 ">
<div class="well">
<h3><center>
<form action="logedin.php" id="form-id" method="GET" >
<center><br><input type="text" placeholder="USN" pattern="1[Rr][Nn]1[2-6][CI][S][0-9][0-9][0-9]" name="usn" align="right" required/>
<br><br><center><input type="password" value="" placeholder="PASSWORD" name="pass" align="right" required/>
<br>
<h4><a href="rpass.php?fname=nakul" style="text-decoration:none"><font color=red>Forgot your password?</a></font></h4>
</center><br>

<div class="account-wall">
<h1 class="text-center login-title">Sign in </h1>
<img class="profile-img" src="images/login.jpg"
alt="">
<form role="form" class="form-signin" action="logedin.php" method="GET">
<input type="text" class="form-control" name="usn" placeholder="1RN12XXXXX" required>
<input type="password" class="form-control" name="pass" placeholder="Password" required>
<button class="btn btn-lg btn-primary btn-block" type="submit">
Sign in</button>
<label class="checkbox pull-left">
&nbsp&nbsp&nbsp&nbsp&nbsp <input type="checkbox" value="remember-me">
Remember me
</label>
<a href="rpass.php" class="pull-right need-help">forgot password? </a><span class="clearfix"></span>
</form>

<a href="sign.php" class="text-center new-account">Create an account </a>
<img src="images/duck.jpg" alt=duck></img>
<br>&nbsp&nbsp&nbsp&nbsp&nbspNO OF MEMBERS ONLINE :

<?php
$dbhost="localhost";
$dbuser="root";
$dbpass="";
$dbname="login";
$dberror="oops could't been able connect to the server";
$dbconn=mysqli_connect($dbhost,$dbuser,$dbpass,$dbname) or die();

if($dbconn==true)
{
<div class="container">
<div class="col-lg-3 col-xs-12 col-md-6"><input type="submit" value="LOGIN" class="btn btn-primary btn-block btn-md" tabindex="7"></div>
</div>
</form><br>
Do not have an account? Sign Up <a href="sign.php" style="text-decoration:none"><font color=green>here</a></font>.

$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(*)'];

}

?>
</div>
</div>

</div>
<div class="col-lg-8 col-md-8 col-sm-8 ">
<div class="well">
<h3><font color=green>NOTIFICATIONS</h3></font>
Expand Down
Loading