Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

edit_tags.php 504B

1234567891011121314151617181920212223
  1. <?php
  2. include('../includes/config.php');
  3. $filename = "";
  4. if(isset($_POST) && $logged_in)
  5. {
  6. $id = rawurldecode($_POST['id']);
  7. $tags = rawurldecode($_POST['tags']);
  8. $user_id = $user->id;
  9. $desktop = $db->select('ricehalla', 'id=? AND user_id=?', array($id, $user_id));
  10. if ($desktop)
  11. {
  12. $data = array(
  13. "tags" => $tags
  14. );
  15. $db->update($data, 'ricehalla', 'id=?', array($id));
  16. }
  17. else
  18. {
  19. echo "You can only edit your image.";
  20. }
  21. }
  22. ?>