Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=44684
Postga havola
Davi_Uz [145] [off]
Жасурбек, // Обрабатываем фото$handle->file_new_name_body = 'ico_cat_' . $img_id;$handle->allowed = array('image/jpeg', 'image/jpg', 'image/gif', 'image/png');$handle->file_max_size = 1024 * $set['flsz'];$handle->file_overwrite = true;$handle->image_resize = true;$handle->image_x = 16;$handle->image_y = 16;$handle->image_convert = 'jpg';$handle->process('../files/news/');if($handle->processed)@ chmod('../files/news/ico_cat_' . $img_id . '.jpg', 0666);$handle->clean();}Header('Location: index.php?act=news');} else {echo functions::display_error($error, '<a href="index.php?act=news&mod=add">' . $lng['repeat'] . '</a>');}} else {echo '<form action="index.php?act=news&mod=add" method="post" enctype="multipart/form-data"><div class="gmenu"><p><b>' . $lng['title'] . ':</b><br /><input type="text" name="name" /><br /><small>' . $lng_news['recommended_long_category'] . '</small><br /><b>' . $lng_news['icon_category'] . ':</b><br /><input type="file" name="imagefile"/><br /><small>' . $lng_news['allowed_formats'] . ' ' . $set['flsz'] . ' ' . $lng_news['allowed_formats2'] . '</small><br /><input type="hidden" name="MAX_FILE_SIZE" value="' . (1024 * $set['flsz']) . '" /></p><p><input type="submit" value="' . $lng['add'] . '" name="submit" /></p></div></form>';}echo '<div class="phdr"><a href="index.php?act=news">' . $lng_news['management_news'] . '</a></div>';break;case 'up' :
qayerin uzgartiraman?
qayerin uzgartiraman?