Witam, posiadam aplikacje portalu w którym jest zwyczajna rejestracja i logowanie oraz administracja.
Posypał mi się system usuwania profili. Gdy chce usunąć profil jako Administrator wyskakuje mi komunikat "Error in receiving data" nie wiem co jest przyczyną , podaje kod PHP


  1. {if $pod_obrazkiem_ico2}
  2. <div class="pad">
  3. <b>{lng text='pr_us_us'} {$pod_obrazkiem_ico2}</b>
  4. </div>
  5. {/if}
  6. {if $message}
  7. {$message}
  8. {else}
  9. <form method="post" action="{$site_url}/index.php?act=profil&id={$kogo}&opt=usun_p" name="post">
  10. <div>
  11. {lng text='czy_na_us2'} <br/>
  12. {lng text='tok'}
  13. <img src="{$token}" class="tok2">
  14. <input type="text" name="token" id="name">
  15. <input type="submit" name="Submit" value="{lng text='usun'}" class="buton"></div>
  16. </form>
  17. {/if}


  1. <?php /* Smarty version Smarty-3.1.13, created on 2013-06-05 09:12:34
  2.   compiled from "/home/admin/domains/egotka.pl/public_html/application/views/profil/profil_usun.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:1612837178513ccf7e5cc603-65605323%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. '6e46318fdfa10cb8fb4b54a697219c1c354be00f' =>
  7. 0 => '/home/admin/domains/egotka.pl/public_html/application/views/profil/profil_usun.tpl',
  8. 1 => 1370423530,
  9. 2 => 'file',
  10. ),
  11. ),
  12. 'nocache_hash' => '1612837178513ccf7e5cc603-65605323',
  13. 'function' =>
  14. ),
  15. 'version' => 'Smarty-3.1.13',
  16. 'unifunc' => 'content_513ccf7e64a9b0_43703680',
  17. 'variables' =>
  18. 'pod_obrazkiem_ico2' => 0,
  19. 'message' => 0,
  20. 'site_url' => 0,
  21. 'kogo' => 0,
  22. 'token' => 0,
  23. ),
  24. 'has_nocache_code' => false,
  25. ),false); /*/%%SmartyHeaderCode%%*/?>
  26. <?php if ($_valid && !is_callable('content_513ccf7e64a9b0_43703680')) {function content_513ccf7e64a9b0_43703680($_smarty_tpl) {?><?php if (!is_callable('smarty_function_lng')) include '/home/admin/domains/egotka.pl/public_html/application/libs/smarty/libs/plugins/function.lng.php';
  27. ?><?php if ($_smarty_tpl->tpl_vars['pod_obrazkiem_ico2']->value){?>
  28. <div class="pad">
  29. <b><?php echo smarty_function_lng(array('text'=>'pr_us_us'),$_smarty_tpl);?>
  30. <?php echo $_smarty_tpl->tpl_vars['pod_obrazkiem_ico2']->value;?>
  31. </b>
  32. </div>
  33. <?php }?>
  34. <?php if ($_smarty_tpl->tpl_vars['message']->value){?>
  35. <?php echo $_smarty_tpl->tpl_vars['message']->value;?>
  36.  
  37. <?php }else{ ?>
  38. <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['site_url']->value;?>
  39. /index.php?act=profil&id=<?php echo $_smarty_tpl->tpl_vars['kogo']->value;?>
  40. &opt=usun_p" name="post">
  41. <div>
  42. <?php echo smarty_function_lng(array('text'=>'czy_na_us2'),$_smarty_tpl);?>
  43. <br/>
  44. <?php echo smarty_function_lng(array('text'=>'tok'),$_smarty_tpl);?>
  45.  
  46. <img src="<?php echo $_smarty_tpl->tpl_vars['token']->value;?>
  47. " class="tok2">
  48. <input type="text" name="token" id="name">
  49. <input type="submit" name="Submit" value="<?php echo smarty_function_lng(array('text'=>'usun'),$_smarty_tpl);?>
  50. " class="buton"></div>
  51. </form>
  52. <?php }?><?php }} ?>