Mavzu: PHPda qisqa kodlar
57. KhKHAN (153) [off] | TXT | 9| 24 Apr 2017, 14:27
#55, ilingan usulni sinab koraveish davo muammoga
58. Dima Muratov (726) [off] | TXT | 9| 24 Apr 2017, 16:57

<?

define
('_IN_JOHNCMS'1);



$headmod 'avatar';



// Внимание! Если файл находится в корневой папке, нужно указать $rootpath = '';

$rootpath '';



require_once (
'incfiles/core.php');

require_once (
'incfiles/head.php');

function 
msg($msg)

{

echo 
"<div class='info'><font color='red'>$msg</font></div>";

}

?>



<style>
.avat{
background-image: url(/files/avatar/

<?echo$user_id;?>


.jpg);
border-radius:10px 10px 0px 0px;
width: 198px;
height: 198px;
background-color: #ffffff;
background-position: center;
}
</style>

<?



if(isset($_FILES['file']))

{

$type $_FILES['file']['type'];

if (
$type!=='image/jpeg' && $type!=='image/jpg' && $type!=='image/gif' && $type!=='image/png'){$err=1;msg('Это не картинка');}





if (!isset(
$err))

{

$tmp $_FILES['file']['tmp_name'];

move_uploaded_file($tmp"files/avatar/$user_id.png");

header("Location:/avatar.php");

}

}

echo
"<center><br/>";

if (
file_exists('files/avatar/'.$user_id.'.png'))

{

echo 
"<img width='198' height='198' src='/files/avatar/$user_id.png' alt='o'/>";

}

else

{

echo 
"<img width='198' height='198' src='images/no_avatar.png' alt='o'/>";

}

echo
"</center><br/>";

echo
"<div style='border-top: 1px solid <a href='/search.php?q=DAE1E8;&d=2'>#DAE1E8;</a> padding-top: 0px'></div><center><div class='gmenu'>";

?>




Аватар должен быть в формате <strong>JPG,GIF или PNG</strong>!<br/>Если у вас не показываеться новый аватар, то нужно почистить кеш!<br/>
<div style='border-top: 1px solid #DAE1E8; padding-top: 0px'></div><br/>
<form style="text-align: center" method='post' enctype='multipart/form-data'>
<input type='file' name='file' />
<input type="submit" name="submit" value="Загрузить"/><br/><br/></form></div></center>

<?

require_once ("incfiles/end.php");

?>




AVATAR YUKLASHDA XATOLIK BOR.
YORDAM BERVORILAR...
59. Udesign (36) [off] | TXT | 9| 25 Apr 2017, 00:06
Janob Master (24 Apr 2017, 13:09):
KhKHAN, toliq biles urgating

shunday qilish kerakmi?
[code]

<?php

$test 
base64_encode('<?php echo "<b>uzmasters</b>"; ?>


');
eval(base64_decode(• • •
Janob Master,

<?php

$test 
base64_encode('echo "<b>uzmasters</b>";');

eval(
base64_decode($test));

?>



Ijobiy (1): Janob Master,
60. Tayotabek (1511) [off] | TXT | 9| 25 Apr 2017, 22:08
Salom. Phpda ochilgan saytlarni matnlarni boshqacharoq qisa böladimi? Telarda böladiku matnlarni pölni boshqacha qiladi qishiq guli h.k shuni phpda qisa böladimi odiy matn yozas misol chat mail forunlarda odiy yozsez matnlar boshqacha qilsa? Masalam salom $äløm h.k
61. BahhTeeUz (M) (4797) [off] | TXT | 10| 25 Apr 2017, 22:43
Tayotabek (25 Apr 2017, 22:08):
Salom. Phpda ochilgan saytlarni matnlarni boshqacharoq qisa böladimi? Telarda böladiku matnlarni pölni boshqacha qiladi qishiq guli h.k shuni phpda qi• • •
Tayotabek, bu php emas css
Salbiy (1): ScarPion,
Raxmat aytdi (1): Tayotabek,
62. Udesign (36) [off] | TXT | 10| 26 Apr 2017, 08:30
Tayotabek (25 Apr 2017, 22:08):
Salom. Phpda ochilgan saytlarni matnlarni boshqacharoq qisa böladimi? Telarda böladiku matnlarni pölni boshqacha qiladi qishiq guli h.k shuni phpda qi• • •
Tayotabek, Bu style.css faylidan qilinadi siz so`ravotgan narsa bu saytning shrifti deyiladi shriftlar font-family: ko`di bilan boshlanadi va o`zizga yoqgan shrift nomi yoziladi masalan ariel font-family: ariel;
Raxmat aytdi (1): Tayotabek,
63. Sardorbek (529) [off] | TXT | 10| 1 May 2017, 23:35
yangilik nechamarta ko‘rilgani haqida ko‘d kerak yozvorilar
Ma'lumotlar
Mavzu id raqami: 946
Mavzuga oid xabarlar soni: 137 ta
So'ngi faollik vaqti: 12 Jan 2019, 19:02
Mavzuni ko'rishgan: 90 kishi
» txt shaklida yuklab olish
» Mavzudagi yangi xabarlardan xabardor bo'lishni rad etish
uzmasters.ru Onlayn 148 (0/148)
uzmasters.ru Forumga a'zo bo'lish
uzmasters.ru Forumdan qidirish
uzmasters.ru Bosh sahifa
Яндекс.Метрика UzMasterS.Ru