1. PHP / Говнокод #984

    +153

    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
    function showFormEdit($id="",$sMsg="", $p_iPageIndex="")
    	{
    		global $oGlobal;
    		eval( $oGlobal->getGlobalVars() );
    		$oGlobal->importUserClass( "rubik.CMoneyOXConfig");
    		RImporter::importRubikClass("ext.xpbox.RHtmlImageUploadForm");
    		RImporter::importRubikClass("ext.xpbox.RHtmlUploadForm");
    		RImporter::importRubikClass("ext.xpbox.RDbComboboxHtml");
    		$oGlobal->importUserClass("rubik.CRubikHelper");
    		$oModel = $this->m_oModel;
    		$dirHelper= CMoneyOXConfig::getInstance();
    		$sBlast = "Manage Download";
    		$assetPath	=	ASSET_PATH;
    		$helper = new CRubikHelper();
    		$x_title				= htmlentities( @$_POST['x_title'], ENT_QUOTES );
    		$x_type					= @$_POST['x_type'];
    		$x_status				= @$_POST['x_status'];
    		$x_date 				= @$_POST['x_date'];
    		if(!empty($id))
    		{
    			$result = $oModel->getDownloadbyID($id);
    			$record = $result->recordSet;
    			$row = $record[0];
    			$sBlast = "Edit Download";
    			$title = $row['title'];
    			$date= date("Y-m-d ",strtotime($row['date']));
    			if($row['publish']) $sYes= " checked=\"true\"";
    			else $sNo= " checked=\"true\"";
    			//create upload image form
    			$picUpload = new RHtmlImageUploadForm("x_picture",$dirHelper->downloadImageDir,$row['preview_image']);
    			$htmlPicture = $picUpload->createUploadFormHtml(50);
    
    			//create upload file form
    			$fileUpload = new RHtmlUploadForm("x_file",$dirHelper->downloadFileDir,$row['download_image'],".zip,.rar");
    			$htmlFile = $fileUpload->createUploadFormHtml(50);
    
    			//create combobox type
    			$sql = "select id,name from download_setting order by id";
    			$categoryTypeHtml = new RDbComboboxHtml($sql,"id", "name", "type",$row['type']);
    			$cbxType = $categoryTypeHtml->createCombobox();
    
    			$thumb = $helper->getThumbName($row['preview_image'],$dirHelper->downloadThumbDir);
    			$thumb = ABS_PATH.$thumb;
    			$thumb = str_replace("administrator/","",$thumb);
    			$thumbHtml = "<img src=\"{$thumb}\" alt=\"\" class=\"borderimg1\"/><br />
    							<input type=\"checkbox\" name=\"remove\" id=\"x_remove\" value=\"remove\" border=\"0\" /> 
    							Remove Photo";
    
    		}
    			
    		@eval( "\$tpl= \"".getTemplate( "edit.back", COMP_PATH . "templates/back" )."\";" );
    		$sys_sCompContent .= $tpl;
    		return $tpl;
    	}

    Индусы жгут по полной, вот код написанный въетнамцами хех

    14MB в gz, полный ппц, тошнит до сих пор

    Запостил: guest, 01 Мая 2009

    Комментарии (3) RSS

    Добавить комментарий