BLACKSITE
:
216.73.217.4
:
104.37.75.190 / alpenpass.ca
:
Linux server3.pointsplan.com 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
:
/
home
/
apca
/
www
/
admin
/
Upload File:
files >> /home/apca/www/admin/manage_blog_cats.php
<?php session_start(); error_reporting(0); include('includes/config.php'); if(strlen($_SESSION['alogin'])==0) { header('location:index.php'); } else{ require("../includes/lib/common.php"); require("../includes/lib/classes/a/blogcategory.php"); $blogcategory = new blogcategory(); $category_id = $request->getvalue('request'); if($category_id>0) $blogcategory->load($category_id); $action = $request->getvalue('action'); if($action=='dp'){ if($blogcategory->image_name!=''){ if (file_exists('../images/blogs/cats/' . $blogcategory->image_name)) unlink('../images/blogs/cats/' . $blogcategory->image_name); } $blogcategory->image_name=''; $blogcategory->save(); } $category_name = $request->postvalue('category_name'); if($category_name!='') { if($_FILES['files']['name']!='') { $upload="../images/blogs/cats/"; if($blogcategory->image_name!='') unlink($upload.$blogcategory->image_name); $file_name = resize_image($upload,$upload,300,$_FILES['files']); $newName1 = resize_size_step_2($upload,$upload,$file_name,$newName1="",300,$_FILES['files']); $blogcategory->image_name = $newName1; unlink($upload.$file_name); } $blogcategory->category_name = $request->postvalue('category_name'); $blogcategory->save(); header("Location:blog_cats.php"); } ?> <!doctype html> <html lang="en-us"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <meta name="theme-color" content="#3e454c"> <title>Alpenpass Motorcycle Rental Portal |Admin Manage Vehicles </title> <!-- Font awesome --> <link rel="stylesheet" href="css/font-awesome.min.css"> <!-- Sandstone Bootstrap CSS --> <link rel="stylesheet" href="css/bootstrap.min.css"> <!-- Bootstrap Datatables --> <link rel="stylesheet" href="css/dataTables.bootstrap.min.css"> <!-- Bootstrap social button library --> <link rel="stylesheet" href="css/bootstrap-social.css"> <!-- Bootstrap select --> <link rel="stylesheet" href="css/bootstrap-select.css"> <!-- Bootstrap file input --> <link rel="stylesheet" href="css/fileinput.min.css"> <!-- Awesome Bootstrap checkbox --> <link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css"> <!-- Admin Stye --> <link rel="stylesheet" href="css/style.css"> <style> .errorWrap { padding: 10px; margin: 0 0 20px 0; background: #fff; border-left: 4px solid #dd3d36; -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); } .succWrap{ padding: 10px; margin: 0 0 20px 0; background: #fff; border-left: 4px solid #5cb85c; -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); } .form-control{ margin-bottom:10px; } </style> </head> <body> <?php include('includes/header.php');?> <div class="ts-main-content"> <?php include('includes/leftbar.php');?> <div class="content-wrapper"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <h2 class="page-title">Manage Blog Categories</h2> <!-- Zero Configuration Table --> <div class="panel panel-default"> <div class="panel-heading">Blog Categories</div> <div class="panel-body"> <section> <form id="form" action="<?php echo $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'];?>" method="post" autocomplete="off" onSubmit="return validate_blogcategory();" enctype="multipart/form-data"> <fieldset> <label>Manage Blog Category</label> <section><label for="category_name">Category Name<br><span></span></label> <div><input class="form-control" style="width:400px;" type="text" id="category_name" name="category_name" value="<?php echo $blogcategory->category_name;?>"> </div> </section> <?php /** <section><label for="building_description">Category Image<br><span></span></label> <div> <input class="form-control" style="width:400px;" type="file" id="files" name="files"/> <?php if($blogcategory->image_name!=''){ ?> <br clear="all"> <img src="../images/blogs/cats/<?php echo $blogcategory->image_name;?>" width="70"><br> <a href="manage_blog_cats.php?action=dp&request=<?php echo $request->getvalue('request');?>">Delete</a> <?php } ?> </div> </section> */ ?> <section> <div> <button class="submit" name="manage_building_button" value="manage_building_button">Submit</button></div> </section> </fieldset> </form> </section> </div> </div> </div> </div> </div> <?php include("footer.php");?> <script> $('form').wl_Form({ ajax:false }); </script> </body> </html> <!-- Loading Scripts --> <script src="js/jquery.min.js"></script> <script src="js/bootstrap-select.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/jquery.dataTables.min.js"></script> <script src="js/dataTables.bootstrap.min.js"></script> <script src="js/Chart.min.js"></script> <script src="js/fileinput.js"></script> <script src="js/chartData.js"></script> <script src="js/main.js"></script> </body> </html> <?php } ?>