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
{if $pod_obrazkiem_ico2}
<div class="pad">
<b>{lng text='pr_us_us'} {$pod_obrazkiem_ico2}</b>
</div>
{/if}
{if $message}
{$message}
{else}
<form method="post" action="{$site_url}/index.php?act=profil&id={$kogo}&opt=usun_p" name="post">
<div>
{lng text='czy_na_us2'} <br/>
{lng text='tok'}
<img src="{$token}" class="tok2">
<input type="text" name="token" id="name">
<input type="submit" name="Submit" value="{lng text='usun'}" class="buton"></div>
</form>
{/if}
<?php /* Smarty version Smarty-3.1.13, created on 2013-06-05 09:12:34
compiled from "/home/admin/domains/egotka.pl/public_html/application/views/profil/profil_usun.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1612837178513ccf7e5cc603-65605323%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' =>
'6e46318fdfa10cb8fb4b54a697219c1c354be00f' =>
0 => '/home/admin/domains/egotka.pl/public_html/application/views/profil/profil_usun.tpl',
1 => 1370423530,
2 => 'file',
),
),
'nocache_hash' => '1612837178513ccf7e5cc603-65605323',
'function' =>
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_513ccf7e64a9b0_43703680',
'variables' =>
'pod_obrazkiem_ico2' => 0,
'message' => 0,
'site_url' => 0,
'kogo' => 0,
'token' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?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';
?><?php if ($_smarty_tpl->tpl_vars['pod_obrazkiem_ico2']->value){?>
<div class="pad">
<b>
<?php echo smarty_function_lng
(array('text'=>'pr_us_us'),$_smarty_tpl);?> <?php echo $_smarty_tpl->tpl_vars['pod_obrazkiem_ico2']->value;?> </b>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['message']->value){?>
<?php echo $_smarty_tpl->tpl_vars['message']->value;?>
<?php }else{ ?>
<form method="post" action="
<?php echo $_smarty_tpl->tpl_vars['site_url']->value;?>/index.php?act=profil&id=
<?php echo $_smarty_tpl->tpl_vars['kogo']->value;?>&opt=usun_p" name="post">
<div>
<?php echo smarty_function_lng
(array('text'=>'czy_na_us2'),$_smarty_tpl);?> <br/>
<?php echo smarty_function_lng
(array('text'=>'tok'),$_smarty_tpl);?>
<img src="
<?php echo $_smarty_tpl->tpl_vars['token']->value;?>" class="tok2">
<input type="text" name="token" id="name">
<input type="submit" name="Submit" value="
<?php echo smarty_function_lng
(array('text'=>'usun'),$_smarty_tpl);?>" class="buton"></div>
</form>
<?php }?><?php }} ?>
Ten post edytował Marcopl3 5.06.2013, 11:05:20