1. Список говнокодов пользователя qbasic

    Всего: 120

  2. JavaScript / Говнокод #5785

    +169

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    <script type="text/javascript"> 
    opt_text13=new Array("Internet","Hardware","Mobiles","Soft","Sequrity","Networks","Interface");
    opt_val13=new Array("14","28","44","54","61","67","72");
    opt_val113=new Array("114","115","116","117","118","119","120","121");
    opt_text122=new Array("Essays","Scintific Publications","Online Lessons & Tests","Scintific Libraries","Other");
    opt_val122=new Array("123","124","125","126","127");
    opt_text128=new Array("Your Appartment","Cookery","All for Holidays","Family","Pats","Health","Fashion and Beauty","Purchases");
    opt_val128=new Array("129","138","146","155","162","170","179","189");
    opt_text129=new Array("Country Cottage","Repair","Construction","Interior Design","Landscape Design","Building Materials","Sanitary","Other");
    opt_val129=new Array("130","131","132","133","134","135","136","137");
    opt_text138=new Array("Recepies","Diet","Products","Tabacco","Bavarage","Delivery","Other");
    opt_val138=new Array("139","140","141","142","143","144","145");
    opt_text146=new Array("E-Cards","Tostes and scenaries","Gifts","Flowers Delivery","Holiday Organization","Fireworks","Holidays","Other");
    opt_val146=new Array("147","148","149","150","151","152","153","154");
    opt_text155=new Array("For Parents","For Children","Relation's Psyhology","Marrage","Marrage Agancies","Other");
    //...............
    opt_val252=new Array("253","254","255","256","257","258");opt_text259=new Array("Astrology","Fortune-telling","Esotericism","UFO","Other");
    opt_val259=new Array("260","261","262","263","264");
    opt_text268=new Array("Places","Tourism","Vocation","Hobbies");
    opt_val268=new Array("269","280","292","297");
    opt_text269=new Array("Restaurants & Bars","Clubs & Diskos","Bowling & Billiard","Casinos","Places for children","Circuses","Parks & Zoos","Theaters","Cinemas","Other");
    opt_val269=new Array("270","271","272","273","274","275","276","277","278","279");
    opt_text428=new Array("Newspapers","Magazines","Publishing Houses","Business publications","Computer publications","Motor-Car publications","Sport publications","Entertaining publications","Music/Cinema/TV","Publications for women","Publications for men","Publications for kids","Other publications");opt_val428=new Array("429","430","431","432","433","434","435","436","437","438","439","440","441");opt_text446=new Array("Metallurgy","Mechanical engineering","Equipment","Electronics","Energetics","Chemical industry","Agriculture","Food Industry","Factories","Light Industry","Heavy Industry","Other industries");opt_val446=new Array("447","451","458","469","473","479","483","484","485","486","487","488");opt_text447=new Array("Iron industry","Non-ferrous metallurgy","Other");opt_val447=new Array("448","449","450");opt_text451=new Array("Motor-car Factories","Engeenering Factories","Agricultural Factories","Sheepbuilding","Aircraft building","Other");
    //........
    opt_text529=new Array("Office equipment","Office furneture","Lock boxes","Stationery","Other");opt_val529=new Array("530","531","532","533","534");opt_text536=new Array("Encyclopedias","Transport","Maps","Addresses & Phones","Search people","Dictionaries","Weather","Other");opt_val536=new Array("537","543","552","553","554","555","556","557");opt_text537=new Array("Universal","Medical","Biographical","Subject encyclopedia","Other");opt_val537=new Array("538","539","540","541","542");opt_text543=new Array("Timetables","Air transport","Railway","Sailing","Urban transport","Taxi & Car rent","Bus transport","Other");opt_val543=new Array("544","545","546","547","548","549","550","551");opt_text558=new Array("Other");
    opt_val558=new Array("559");//**************************************************************

    qbasic, 23 Февраля 2011

    Комментарии (10)
  3. Куча / Говнокод #5784

    +128

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    <table border="0">
    <form name="form1">
    <tr>
      <tr><td width="200"><span id="jdc1">
          <select name="cc1" onclick="show_select(this.options[this.selectedIndex].value, 'cc2','jdc1')">
        <option value="13">Hi-Tech</option><option value="79">Job</option><option value="87">Education</option><option value="128">Home</option><option value="200">Society</option><option value="232">Enterteiments</option><option value="268">Activities</option><option value="304">Culture</option><option value="386">Sport</option><option value="427">Mass-Media</option><option value="446">Industry</option><option value="489">Business</option><option value="536">Inquries</option><option value="558">Other</option>   </select></span></td></tr>
        <tr><td><span id="jdc2" style="visibility: hidden;"><select name="cc2" onclick="show_select(this.options[this.selectedIndex].value, 'cc3','jdc2')" style="">
                    </select></span></td></tr>
        <tr><td><span id="jdc3" style="visibility: hidden;"><select name="cc3" onclick="show_select(this.options[this.selectedIndex].value, 'cc4','jdc3')" style="">
                    </select></span></td></tr> 
        <tr><td><span id="jdc4" style="visibility: hidden;"><select name="cc4" style="">
                    </select></span></td></tr>
    </table>

    qbasic, 23 Февраля 2011

    Комментарии (4)
  4. PHP / Говнокод #5778

    +165

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    <?php
            function Test()
            {
                    if (isset($this->session->login) && isset($this->session->password)) {
                            if ($this->session->ip != $_SERVER["REMOTE_ADDR"]) {
                                    $this->db->Query("INSERT INTO `hackers`
                                 SET `ip` = '%s', `get` = '%s'", $_SERVER['REMOTE_ADDR'], $_SERVER["REQUEST_METHOD"]." | ".$_SERVER["REQUEST_URI"]);
                                    exit("Critical error! Stopping...");
                            } else {
                                    $this->db->Query("SELECT *
                                            FROM `users`
                                            WHERE `login` = '%s' AND password = '%s' LIMIT 1", $this->session->login, $this->session->password);
                                    if ($this->db->Num()) {
                                            return $this->db->Fetch();
                                    } else {
                                            return false;
                                    }
                            }
                    } else {
                            return false;
                    }
            }

    qbasic, 23 Февраля 2011

    Комментарии (5)
  5. PHP / Говнокод #5777

    +159

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    //старт сессии
    function Sessions_Start () {
            global $SecureKey, $SecureCookieName, $NumIPRanks, $AuthSalt;
     
        $LifeTime = 0; 
        $Path = '/';
        $Domain = '';
        $Secure = FALSE;
        $HttpOnly = TRUE;
        session_set_cookie_params($LifeTime, $Path, $Domain, $Secure, $HttpOnly);
            
            session_start ();
            
            if (!isset ($_SESSION['UserData'])) {
                    $_SESSION['UserData'] = array ();
                    $_SESSION['UserData']['UserType'] = 'guest';    
            }
            else{
                    $Type = $_SESSION['UserData']['UserType'];
                    $SessionValidator = 0;
                    
                    if ($Type == 'member') {
                            if (!isset ($_SESSION['UserData']['UserID']) or !isset ($_SESSION['UserData']['UserName']) or!isset ($_SESSION['UserData']['GroupID']) or!isset ($_SESSION['UserData'][$SecureKey]) or!isset ($_SESSION['UserData'][$SecureCookieName])) {
                                    $SessionValidator++;
                            }
                            
                            if (!isset ($_COOKIE[$SecureCookieName])) {
                                    $SessionValidator++;
                            }                       
                            
                            //секретная строка
                            $IPArray = explode ('.', $_SERVER['REMOTE_ADDR']);
                            $IPRanks = array ();
                            for ($i=0; $i < $NumIPRanks; $i++) {
                                    $IPRanks[] = $IPArray[$i];
                            }
                            $IPFinalString = sha1 (implode ('.', $IPRanks) . $AuthSalt);
                            $CurUserAgent = sha1 (substr ($_SERVER['HTTP_USER_AGENT'], 0, 50) . $AuthSalt);
                            $SecureString = sha1 ($IPFinalString . $CurUserAgent . $AuthSalt);
                            
                            if ($_SESSION['UserData'][$SecureKey] <> $SecureString) {
                                    $SessionValidator++;
                            }
                            
                            if ($_SESSION['UserData'][$SecureCookieName] <> $_COOKIE[$SecureCookieName]) {
                                    $SessionValidator++;
                            }
                            
                            if ($SessionValidator > 0) {
                                    session_regenerate_id ();
                                    $_SESSION['UserData'] = array ();
                                    $_SESSION['UserData']['UserType'] = 'guest';
                            }
                            
                    }
            }       
            return (session_id ());
    }

    qbasic, 23 Февраля 2011

    Комментарии (0)
  6. PHP / Говнокод #5776

    +160

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    85. 85
    86. 86
    87. 87
    88. 88
    89. 89
    90. 90
    91. 91
    92. 92
    93. 93
    94. 94
    if (isset ($_POST['SendAuthForm'])) {   
    	//массив ошибок
    	$AuthError = array ();
    	
    	if (!isset ($_POST['AuthLogin']) || $_POST['AuthLogin'] == '' || !isset ($_POST['AuthPass']) || $_POST['AuthPass'] == '') {
    		$AuthError[] = $ForumLang['AuthErrors']['WrongLoginPass'];
    	}
    	else {
    		$AuthLogin = trim ($_POST['AuthLogin']);
    		$AuthPass  = trim ($_POST['AuthPass']);
    		$CheckUserValid = 0;	    
    		//проверка логина-пароля
    		$SQLCheckAuth = 'SELECT UserID, UserPassword, UserMail, GroupID
    						 FROM users
    						 WHERE UserLogin = \'' . Defence_EscapeString ($DBType, $AuthLogin) . '\'';
    		$CheckAuthQuery = DB_Query ($DBType, $SQLCheckAuth, $ForumConnection);
    		if (!$CheckAuthQuery) {		 
    			exit ('Error while checking auth data!');
    		}
    		$UserExists = DB_NumRows ($DBType, $CheckAuthQuery);
    		if ($UserExists == 0) {
    			$CheckUserValid++;		      
    		}	       
    		//массив		
    		$UserRow = DB_FetchAssoc ($DBType, $CheckAuthQuery);
    	 //данные		
    		$UserPass = $UserRow['UserPassword'];
    		$UserID   = intval ($UserRow['UserID']);
    		$UserMail = $UserRow['UserMail'];
    		$GroupID  = intval ($UserRow['GroupID']);
    		if (Main_Crypt ($AuthPass) <> $UserPass) {
    			$CheckUserValid++;
    		}
    		if ($CheckUserValid > 0) {
    			$AuthError[] = $ForumLang['AuthErrors']['WrongLoginPass'];
    		}
    		else {
    			//удаление из гостей
    			$SQLDelFromGuests = 'DELETE FROM guest_activity
    								 WHERE SessionID=\'' . $SessionID . '\'';
    			$DelFromGuestsQuery = DB_Query ($DBType, $SQLDelFromGuests, $ForumConnection);
    			if (!$DelFromGuestsQuery) {		     
    				exit ('Error while deleting user from guest table!');
    			}		       
    			//редактирование таблицы пользователя
    			$CurAction = 'main_page';
    			$SQLUpdateUser = 'UPDATE user_activity
    					  SET UserLastLogin=\'' . $Now . '\', UserLastAction=\'' . $CurAction . '\', UserIsOnline=\'yes\'
    							  WHERE UserID=\'' . $UserID . '\'';
    			$UpdateUserQuery = DB_Query ($DBType, $SQLUpdateUser, $ForumConnection);
    			if (!$UpdateUserQuery) {			
    				exit ('Error while updating user status onto \'yes\'!');
    			}
    			//регенерация ид сессии		 
    			session_regenerate_id (TRUE);
    			$SecureString = '';		     
    			//ip пользователя
    			$CurUserIP = $_SERVER['REMOTE_ADDR'];
    			$IPArray = explode ('.', $CurUserIP);
    			$IPRanks = array ();
    			for ($i=0; $i < $NumIPRanks; $i++) {
    				$IPRanks[] = $IPArray[$i];
    			}
    			$IPFinalString = implode ('.', $IPRanks);
    			$IPFinalString = sha1 ($IPFinalString . $AuthSalt);
    			//user-agent
    			$CurUserAgent = $_SERVER['HTTP_USER_AGENT']; 
    			$CurUserAgent = substr ($CurUserAgent, 0, 50); 
    			$CurUserAgent = sha1 ($CurUserAgent . $AuthSalt); 
    			//объединение
    			$SecureString = sha1 ($IPFinalString . $CurUserAgent . $AuthSalt);
    			//случайная строка - хеш
    			$RandomString = Main_GenerateRandString (10, '1');
    			$RandomString = sha1 ($RandomString . $AuthSalt . time ());
    		//данные в сессию
    			unset ($_SESSION['UserData']);
    			$_SESSION['UserData'] = array ();
    			$_SESSION['UserData']['UserType'] = 'member';
    			$_SESSION['UserData']['UserID']   = $UserID;
    			$_SESSION['UserData']['UserName'] = $AuthLogin;
    			$_SESSION['UserData']['GroupID']  = $GroupID;
    			$_SESSION['UserData'][$SecureKey] = $SecureString;
    			$_SESSION['UserData'][$SecureCookieName] = $RandomString;
    			//куки
    			setcookie($SecureCookieName,$RandomString);
    			//перенаправление
    			$_SESSION['Message'] = 'auth_sucess';
    			$URL = '?action=message';
    			Header('Location:' . $SelfName . $URL);
    			exit ();
    		}
    	}       
    	//проверка
    }

    qbasic, 23 Февраля 2011

    Комментарии (2)
  7. PHP / Говнокод #5775

    +160

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    <?php
    $result=mysql_query($query);
    while($r=mysql_fetch_array($result))
    {
    
    echo "$r[groupe]<br/>";
    
    $gr1_c1=$r[0]['groupe'];
    $gr2_c1=$r[1]['groupe'];
    $gr3_c1=$r[2]['groupe'];
    $gr4_c1=$r[3]['groupe'];
    $gr5_c1=$r[4]['groupe'];
    $gr6_c1=$r[5]['groupe'];
    $gr7_c1=$r[6]['groupe'];
    
    ?>
    
    
    <table width="1027" cellspacing="0" cellpadding="0" border="1" align="center" valign="center">
    <tr>
    <td width="85"><div align="center"><? echo $gr1_c1 ?> </div></td>
    <td width="85"><div align="center"><? echo $gr2_c1 ?> </div></td>
    <td width="85"><div align="center"><? echo $gr3_c1 ?></div></td>
    <td width="85"><div align="center"><? echo $gr4_c1 ?></div></td>
    <td width="85"><div align="center"><? echo $gr5_c1 ?></div></td>
    <td width="85"><div align="center"><? echo $gr6_c1 ?></div></td>
    <td width="85"><div align="center"><? echo $gr7_c1 ?></div></td>
    </tr>
    </table>

    qbasic, 23 Февраля 2011

    Комментарии (0)
  8. PHP / Говнокод #5773

    +163

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    <?$APPLICATION->IncludeFile('/inc/mail.php')?> <?$err=-1;?> <?if($_REQUEST['act']=="add" && $_REQUEST['text'] && $_REQUEST['phone'] && $_REQUEST['captcha'] && !isset($_REQUEST['from'])):?> <?$err=0;?> <?if($_SESSION['pass']!=$_REQUEST['captcha']):?>
    <div class="red"><b>Неверно введен код подтверждения!</b></div>
    <?$err=1;?> <?else:?> <?
    $el = new CIBlockElement;
    
    if($new_id = $el->Add($arLoadProductArray))
    {
    $sect2 = GetIBlockSection($_REQUEST['podr_'.$_REQUEST['rubrika']]);
    $sect1 = GetIBlockSection($_REQUEST['rubrika']);
    echo "Ваше объявление успешно принято и будет рассмотрено модератором";
    $domen = "http://www.auto-city.ru/";
    $mail_body = 'Добавлено новое объявление "'.$_REQUEST['text'].'" в рубрике "'.$sect1['NAME'].'"->"'.$sect2['NAME'].'" и ожидает модерации: <a href="'.$domen.'bitrix/admin/iblock_element_edit.php?ID='.$new_id.'&type=obyav&IBLOCK_ID=47">'.$domen.'bitrix/admin/iblock_element_edit.php?ID='.$new_id.'&type=obyav&IBLOCK_ID=47</a>';
    email('[email protected]', '[email protected]', 'Робот АвтоCity', 'Новое объявление на сайте', $mail_body);
    }
    else
    echo "Возникла ошибка при добавлении, обратитесь к слежбе поддержки";
    ?> <?endif?> <?elseif($_REQUEST['act']=="add"):?> <?if(!$_REQUEST['from']):?>
    <div class="red"><b>Заполните все поля!</b></div>
    <?else:?> <b>Пожалуйста, укажите подрубрику и введите код подтверждения</b> <?endif?> <?$err=1;?> <?endif?> <?if($err || $err==-1):?>
    <script language="JavaScript">
    lastKey = 0;
    function ch_r(obj)
    {
    document.getElementById('r_'+obj.value).style.display = 'block';
    document.getElementById('r_'+lastrid).style.display = 'none';
    lastrid = obj.value;
    }
    
    function checkForm(obj)
    {
    var str = obj.phone.value;
    var re = /[^\d ()-+]+/;
    for(i=0;i<1000;i++)
    obj.phone.value = obj.phone.value.replace(re, "");
    if(obj.phone.value!=str){
    alert('В поле "Номер телефона" необходимо вводить только цифры!');
    return false;
    
    }
    if(!obj.text.value || !obj.captcha.value || !obj.phone.value)
    {
    alert('Заполните все поля!');
    return false;
    }
    }
    /*
    function checkChar2(){
    var re = /[^\d ()-+]+/;
    for(i=0;i<1000;i++)
    obj.phone.value = obj.phone.value.replace(re, "");
    }
    function checkChar()
    {
    key = event.keyCode;
    if(key<48 || key>57)
    
    // || key==109 || key==46 || key==16 || key==8 || key==32 || key==37 || key==39 || key==36 || key==35 || (key==57 || key==48 || key==107 || key==36 || key==35 || key==37 || key==39 || key==51 || key==56))
    {
    alert(key);
    lastKey = key;
    return false;
    }
    lastKey = key;
    return true;
    }*/
    </script>
    <form name="iblock_add" method="post" onsubmit="return checkForm(this)">
    <table class="tabs" style="width: 100%; border-collapse: collapse;" id="give_obyav">
    <tbody>
    <tr> <td> Текст объявления: </td> <td style="width: 250px;"> <textarea maxlength="200" size="20" rows="5" cols="25" name="text" style="width: 100%;">&lt;img src=&quot;/bitrix/images/fileman/htmledit2/php.gif&quot; __bxsrc=&quot;/bitrix/images/fileman/htmledit2/php.gif&quot; border=&quot;0&quot; __bxtagname=&quot;php&quot; __bxcontainer=&quot;{'code': '&lt;?=$_REQUEST[\'text\']?&gt;'}&quot; /&gt;</textarea> </td> </tr>
    
    <tr> <td> Рубрика: </td> <td> <?$l1 = GetIBlockSectionList(47,0,Array("SORT"=>"ASC"))?> <select name="rubrika" onchange="ch_r(this);" style="width: 100%;"> </select> </td> </tr>

    qbasic, 22 Февраля 2011

    Комментарии (14)
  9. Куча / Говнокод #5761

    +131

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    <html>
    <head>
    <title>Красивое облао тегов</title> 
    <script type="text/javascript" src="swfobject.js"></script>
    </head>
    <body>
    
    <div id="tags">
    
    <?php
    $tags = '<tags>
    <a href="http://Wincert.ru" style="font-size: 15pt">Wincert</a>
    <a href="http://W-blog.ru" style="font-size: 15pt">Мой блог</a>
    <a href="http://cssor.ru" style="font-size: 15pt">Крутой сайт о CSS</a>
    <a href="http://Wincert.ru" style="font-size: 15pt">Веб разработчик</a>
    <a href="http:// W-blog.ru" style="font-size: 15pt">Интересное</a>
    </tags>';
    ?>
    Для корректного отображения этого элемента вам необходимо установить FlashPlayer и включить в браузере Java Script.
    <script type="text/javascript">
    var rnumber = Math.floor(Math.random()*9999999);
    var widget_so = new SWFObject("tagcloud.swf?r="+rnumber, "tagcloudflash", "230", "140", "9", "#ffffff");
    widget_so.addParam("allowScriptAccess", "always");widget_so.addVariable("tcolor", "0x333333");
    widget_so.addVariable("tspeed", "115");
    widget_so.addVariable("distr", "true");
    widget_so.addVariable("mode", "tags");
    widget_so.addVariable("tagcloud", "<?php echo urlencode($tags); ?>");
    widget_so.write("tags");</script> 
    
    </div>
    
    </body>
    </html>

    qbasic, 22 Февраля 2011

    Комментарии (7)
  10. JavaScript / Говнокод #5760

    +158

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    <script type="text/javascript" src="swfobject.js"></script>
    <script type="text/javascript">
    	function  myTags(mytags){
    		mytags=mytags.replace(/<A/g, '<a')
    			.replace(/\/A>/g, "/a>")
    			.replace(/(\starget=_)(\w*)/g, ' target="_$2"')
    			.replace(/(\sclass=)(?!")(\w*)/g, ' class="$2"')
    			.replace(/(\sname=)(?!")(\w*)/g, ' name="$2"')
    			.replace(/(\sid=)(?!")(\w*)/g, ' id="$2"')
    			.replace(/(\srel=)(?!")(\w*)/g, ' rel="$2"');
    		mytags=encodeURIComponent(mytags).replace(/!/g, '%21')
    			.replace(/'/g, '%27').replace(/\(/g, '%28')
    			.replace(/\)/g, '%29').replace(/\*/g, '%2A');
    		var rnumber = Math.floor(Math.random()*9999999);
    		var flashvars = {
    			tcolor:"0x2A62C8",
    			tcolor2:"0x000000",
    			hicolor:"0xB12AC8",
    			tspeed:"110",
    			distr:"true",
    			mode:"tags",
    			tagcloud:mytags
    		};
    		var params = {
    			allowScriptAccess:"always",
    			bgcolor:'#ffffff'
    		};
    		var attributes = {
    			id:"flash_cloud"
    		};
    		swfobject.embedSWF("tagcloud.swf?r="+rnumber,
    						   "tags", "600", "420", "9.0.0",
    						   "expressInstall.swf", flashvars,
    						   params, attributes);
    	}
    	window.onload=function(){
    		var mytags="<tags>"
    		+document.getElementById('tags').innerHTML
    		+"</tags>";
    		myTags(mytags);
    	};
    </script>

    qbasic, 22 Февраля 2011

    Комментарии (0)
  11. PHP / Говнокод #5749

    +157

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    <?php 
    echo '
    <form method="POST" action="">
    <input type="submit" name="sub" value="Отправить">
    </form>
    ';
    $sub=$_POST['sub'];
    if ($sub==true){
    function rand_foto($patch = "images") 
    { 
    if(!$dir = opendir($patch)) return "images"; 
    while(($t = readdir($dir)) !== false) 
    { 
    $ext = substr(strrchr($t,'.'), 1); 
    if(is_file($t) && ($ext == "gif") || ($ext == "jpg") || ($ext == "png")) 
    { 
    $filename[] = $patch."/".$t; 
    } 
    } 
    closedir($dir); 
    $index = rand(0, count($filename) - 1); 
    $foto = "<img src=".$filename[$index].">"; 
    return $foto; 
    } 
    echo rand_foto(); }

    qbasic, 21 Февраля 2011

    Комментарии (1)