ACC SHELL

Path : /srv/www/vhosts/unitedsolution/admin/page/
File Upload :
Current File : /srv/www/vhosts/unitedsolution/admin/page/edit_img.php

<?php
  $page = new page();
  
  if($_POST['button'] == 'ulozit'){

  	  $page->edit_page_picture();
      echo	'<div class="user_msg">'.$page->msg.'</div>';

  } 
  $page->select_one($_GET['id']);
  
echo '<h1 class="page_show_h">Statické stránky</h1>';

  
  if($page->msg != PAGE_EDITED){
  
  echo "\n<img src=\"../images_page/".$page->foto."\" alt=\"fotografie\" />\n";

  ?>
  <a id="page_bakc" class="m" href="default.php?page=page/edit&amp;id=<?= $_GET['id'] ?>"><img border="0" src="img/Back.jpg" alt="Zpět" title="Zpět" /></a>
  <form id="user_form" enctype="multipart/form-data" name="user" method="post" action="default.php?page=page/edit_img&amp;id=<?= $_GET['id'].(isset($_GET['number'])?"&amp;number=2":""); ?>">
  	<br /><br />
  	<br /><br />
    <input class="text" name="foto" type="file" accept = ".bmp.jpg.jpeg.gif.tif.png" />
  	<div><input id="page_b_1" type="submit" name="button" value="ulozit" title="Uložit" /></div>
  </form>	
  <?
  
  echo	'<div class="msg">'.$page->msg.'</div>';
  
  }
  else{
  
  echo	'<div class="msg2">'.$page->msg.'</div>';
  
  }

?>

ACC SHELL 2018