]]jkjjgdjffksdkdfdkfjgsldkfhgjkgjkhjkgjkdascxvxcvxcvjdklfgjslkdfgjlskdfgjdskfgj
במ12[aspddfsdfsdfdrxcvxcvcxvxcvxcvxcvxcvxcvxcvxcvxcvxxvxcvxcvxcv;'
/
home
/
magnorco
/
public_html
/
magnor_admin
/
Upload FileeE
HOME
<?php include_once('connect.php'); if($_SESSION['username']==NULL) { header('location:index.php'); } ?> <!DOCTYPE HTML> <html> <head> <title>EduFabrica : EduFabrica Clash</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script> <!-- Bootstrap Core CSS --> <link href="css/bootstrap.css" rel='stylesheet' type='text/css' /> <link href="img/icon.png" rel='icon' type='icon/image'> <!-- Custom CSS --> <link href="css/style.css" rel='stylesheet' type='text/css' /> <!-- font-awesome icons CSS --> <link href="css/font-awesome.css" rel="stylesheet"> <!-- //font-awesome icons CSS --> <!-- side nav css file --> <link href='css/SidebarNav.min.css' media='all' rel='stylesheet' type='text/css'/> <!-- side nav css file --> <!-- js--> <script src="js/jquery-1.11.1.min.js"></script> <script src="js/modernizr.custom.js"></script> <!--webfonts--> <link href="//fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet"> <!--//webfonts--> <!-- Metis Menu --> <script src="js/metisMenu.min.js"></script> <script src="js/custom.js"></script> <link href="css/custom.css" rel="stylesheet"> <!--//Metis Menu --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script> <!--text editor code start--> <!--link rel="stylesheet" type="text/css" href="style.css" /--> <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-base.css" /> <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-topbar.css" /> <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-sidebar.css" /> <script type="text/javascript" src="ddlevelsfiles/ddlevelsmenu.js"> </script> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> <!--text editor code end here --> </head> <body class="cbp-spmenu-push"> <div class="main-content"> <div class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left" id="cbp-spmenu-s1"> <!--left-fixed -navigation--> <aside class="sidebar-left"> <nav class="navbar navbar-inverse"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".collapse" aria-expanded="false"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <?php include_once('leftnavi.php'); ?> <!-- /.navbar-collapse --> </nav> </aside> </div> <!--left-fixed -navigation--> <!-- header-starts --> <?php include_once('header.php'); ?> <!-- //header-ends --> <!-- main content start--> <div id="page-wrapper"> <div class="main-page"> <div class="forms"> <h2 class="title1">EduFabrica Clash</h2> <div class="form-grids row widget-shadow" data-example-id="basic-forms"> <div class="form-title"> <h4>EduFabrica Clash :</h4> </div> <?php $eid=base64_decode($_GET['eid']); if(isset($_POST['submit'])!=null) { $ptitle=$_POST['ptitle']; $pcont=$_POST['pcontent']; /*--file upload--*/ $target='img/'; $pimg=$_FILES['pimage']['name']; move_uploaded_file($_FILES['pimage']['tmp_name'],"$target/".$pimg); /*--file upload--*/ $query=mysqli_query($conn,"update points set title='$ptitle',description='$pcont',image='$pimg' where id='$eid'") or die("ERROR".mysqli_error()); echo "<script>alert('Content successfully updated');</script>"; } $cquery=mysqli_query($conn,"select * from points where id='$eid'") or die("ERROR".mysqli_error()); $crow=mysqli_fetch_array($cquery); ?> <div class="form-body"> <form class="form-horizontal" method="POST" action="" enctype="multipart/form-data"> <div class="form-group"> <label class="col-sm-2 control-label">Title:</label> <div class="col-sm-8"> <input type="text" name="ptitle" class="form-control" value="<?=$crow['title']?>" placeholder=""> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Image:</label> <div class="col-sm-8"> <input type="file" name="pimage" class="form-control"> </div> </div> <div class="form-group"> <label for="txtarea1" class="col-sm-2 control-label">Description:</label> <div class="col-sm-8"> <textarea name="pcontent" class="in-textarea" id="topbtitle"><?=$crow['description']?> </textarea> </div> </div> <div class="form-group" style="margin-left:400px;"> <button type="submit" name="submit" class="btn btn-default">Submit</button> </div> </form> </div> </div> </div> </div> </div> <!--editor files--> <script type="text/javascript"> CKEDITOR.replace( 'topbtitle', { filebrowserBrowseUrl : 'ckfinder/ckfinder.html', filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?type=Images', filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?type=Flash', filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files', filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images', filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash' } ); </script> <!--editor files end here--> <!--footer--> <?php include_once('footer.php'); ?> <!--//footer--> </div> <!-- side nav js --> <script src='js/SidebarNav.min.js' type='text/javascript'></script> <script> $('.sidebar-menu').SidebarNav() </script> <!-- //side nav js --> <!-- Classie --><!-- for toggle left push menu script --> <script src="js/classie.js"></script> <script> var menuLeft = document.getElementById( 'cbp-spmenu-s1' ), showLeftPush = document.getElementById( 'showLeftPush' ), body = document.body; showLeftPush.onclick = function() { classie.toggle( this, 'active' ); classie.toggle( body, 'cbp-spmenu-push-toright' ); classie.toggle( menuLeft, 'cbp-spmenu-open' ); disableOther( 'showLeftPush' ); }; function disableOther( button ) { if( button !== 'showLeftPush' ) { classie.toggle( showLeftPush, 'disabled' ); } } </script> <!-- //Classie --><!-- //for toggle left push menu script --> <!--scrolling js--> <script src="js/jquery.nicescroll.js"></script> <script src="js/scripts.js"></script> <!--//scrolling js--> <!-- Bootstrap Core JavaScript --> <script src="js/bootstrap.js"> </script> </body> </html>