/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

anonymous

0

	//Actually, return a list of states
	public function GetCities(){...}
 

anonymous

0

// whole Drupal6
 

anonymous

+2

<noscript><script type="text/javascript">alert("You do not have JavaScript enabled. Please enable JavaScript.</script></noscript>
 

anonymous

+1

@media screen and (min-width:0){ ... } // The final straw that got someone fired.
 

0

{% for img in subpage.images.all %}
    <a href="
    {% thumbnail img.image '930x523' as im %}
        {{ im.url }}">
    {% empty %}
        ">
    {% endthumbnail %}
    <img src="
    {% thumbnail img.image '200x112' as im %}
        {{ im.url }}"
    {% empty %}
        "
    {% endthumbnail %}
    {% thumbnail img.image "1200" as im %}
        data-big="{{ im.url }}"
    {% empty %}
    {% endthumbnail %}
    {% if img.title or img.author %}
            data-title="{{ img.title|default:"&nbsp;" }}"
        {% if img.author %}
            data-description="{% blocktrans with img.author as author %}photo by {{ author }}{% endblocktrans %}"
        {% else %}
            data-description="&nbsp;"
        {% endif %}
    {% endif %}
    ></a>
{% endfor %}
 

+3

function not_only_letters(word) {
     
    var OK = 1
    var NO = 0
 
     
    word = word.toUpperCase();
 
    var len = wyraz.length; 
 
    for(i = 0;  i < len;  i++){        
             
            if(word.charAt(i) <"A" 
                    && word.charAt(i) != "-" 
                        && word.charAt(i)  != " " 
                            && word.charAt(i) != "." 
                                && word.charAt(i) != "&" 
                                    && word.charAt(i) != "_" 
                                        && word.charAt(i) != "\"" 
                                            && word.charAt(i) != "'" 
                             
            ) {                
                if(polish_letter(word.charAt(i) ) == 0 ) 
                            return NO; 
            }
            if(word.charAt(i) >"Z" 
                       && word.charAt(i) != "-" 
                            && word.charAt(i)  != " " 
                                && word.charAt(i) != "." 
                                    && word.charAt(i) != "&" 
                                        && word.charAt(i) != "_" 
                                            && word.charAt(i) != "\""
                                                && word.charAt(i) != "'"
            ) {  
 
                if(word.charCodeAt(i) >188) 
                    continue;
                else
                {
                 if(polish_letter(word.charAt(i) ) == 0 ) 
                        return NO;
                else
                   continue;
                }
            }
    }
    var counter = 0;
    for(i = 0;  i < len;  i++){
            if(word.charAt(i) == "-" 
                        || word.charAt(i)  == " " 
                            || word.charAt(i) == "." 
                                || word.charAt(i) == "&" 
                                    || word.charAt(i) == "_" 
                                        || word.charAt(i) == "\""
                                            || word.charAt(i) == "'"
             ) {
                counter++;
            }
    }
    if (len > 0)
    if (counter==len)
    {
        return NO;
    }
    return OK;
}
 

anonymous

0

public void drawForeground() {
		switch (pageIndex) {
			case 0:
				drawMainScreen();
				break;
			case 1:
				drawScreenTwo();
				break;
			case 2:
				drawScreenThree();
				break;
			case 3:
				drawScreenFour();
				break;
			case 4:
				drawScreenFive();
				break;
			case 5:
				drawScreenSix();
				break;
			case 6:
				drawScreenSeven();
				break;
			case 7:
				drawScreenEight();
				break;
			case 8:
				drawScreenNine();
				break;
			case 9:
				drawScreenTen();
				break;
			case 10:
				drawScreenEleven();
				break;
		}
	}

	protected void drawMainScreen() {
		fontRendererObj.drawString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.title.main"), bookXStart + 60, 20, 0x000000);

		boolean unicode = fontRendererObj.getUnicodeFlag();
		fontRendererObj.setUnicodeFlag(false);
		fontRendererObj.drawSplitString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.content.main"), bookXStart + 30, 60, WIDTH - 40, 0x000000);
		fontRendererObj.drawString((pageIndex + 1) + "/" + (bookTotalPages), bookXStart + 82, 215, 0x000000);
		fontRendererObj.setUnicodeFlag(unicode);
	}

	private void drawScreenTwo() {
		fontRendererObj.drawString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.title.1"), bookXStart + 70, 20, 0x000000);

		boolean unicode = fontRendererObj.getUnicodeFlag();
		fontRendererObj.setUnicodeFlag(false);
		fontRendererObj.drawSplitString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.content.1"), bookXStart + 20, 60, WIDTH - 40, 0x000000);
		fontRendererObj.drawString((pageIndex + 1) + "/" + (bookTotalPages), bookXStart + 82, 215, 0x000000);
		fontRendererObj.setUnicodeFlag(unicode);
	}

	private void drawScreenThree() {
		fontRendererObj.drawString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.title.2"), bookXStart + 70, 20, 0x000000);

		boolean unicode = fontRendererObj.getUnicodeFlag();
		fontRendererObj.setUnicodeFlag(false);
		fontRendererObj.drawSplitString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.content.2"), bookXStart + 20, 60, WIDTH - 40, 0x000000);
		fontRendererObj.drawString((pageIndex + 1) + "/" + (bookTotalPages), bookXStart + 82, 215, 0x000000);
		fontRendererObj.setUnicodeFlag(unicode);
	}

	private void drawScreenFour() {
		fontRendererObj.drawString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.title.3"), bookXStart + 70, 20, 0x000000);

		boolean unicode = fontRendererObj.getUnicodeFlag();
		fontRendererObj.setUnicodeFlag(false);
		fontRendererObj.drawSplitString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.content.3"), bookXStart + 20, 60, WIDTH - 40, 0x000000);
		fontRendererObj.drawString((pageIndex + 1) + "/" + (bookTotalPages), bookXStart + 82, 215, 0x000000);
		fontRendererObj.setUnicodeFlag(unicode);
	}

	private void drawScreenFive() {
		fontRendererObj.drawString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.title.4"), bookXStart + 70, 20, 0x000000);

		boolean unicode = fontRendererObj.getUnicodeFlag();
		fontRendererObj.setUnicodeFlag(false);
		fontRendererObj.drawSplitString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.content.4"), bookXStart + 20, 60, WIDTH - 40, 0x000000);
		fontRendererObj.drawString((pageIndex + 1) + "/" + (bookTotalPages), bookXStart + 82, 215, 0x000000);
		fontRendererObj.setUnicodeFlag(unicode);
	}

	private void drawScreenSix() {
		fontRendererObj.drawString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.title.5"), bookXStart + 70, 20, 0x000000);

		boolean unicode = fontRendererObj.getUnicodeFlag();
		fontRendererObj.setUnicodeFlag(false);
		fontRendererObj.drawSplitString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.content.5"), bookXStart + 20, 60, WIDTH - 40, 0x000000);
		fontRendererObj.drawString((pageIndex + 1) + "/" + (bookTotalPages), bookXStart + 82, 215, 0x000000);
		fontRendererObj.setUnicodeFlag(unicode);
	}

	private void drawScreenSeven() {
		fontRendererObj.drawString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.title.6"), bookXStart + 70, 20, 0x000000);

		boolean unicode = fontRendererObj.getUnicodeFlag();
		fontRendererObj.setUnicodeFlag(false);
		fontRendererObj.drawSplitString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.content.6"), bookXStart + 20, 60, WIDTH - 40, 0x000000);
		fontRendererObj.drawString((pageIndex + 1) + "/" + (bookTotalPages), bookXStart + 82, 215, 0x000000);
		fontRendererObj.setUnicodeFlag(unicode);
	}

	private void drawScreenEight() {
		fontRendererObj.drawString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.title.7"), bookXStart + 70, 20, 0x000000);

		boolean unicode = fontRendererObj.getUnicodeFlag();
		fontRendererObj.setUnicodeFlag(false);
		fontRendererObj.drawSplitString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.content.7"), bookXStart + 20, 60, WIDTH - 40, 0x000000);
		fontRendererObj.drawString((pageIndex + 1) + "/" + (bookTotalPages), bookXStart + 82, 215, 0x000000);
		fontRendererObj.setUnicodeFlag(unicode);
	}

	private void drawScreenNine() {
		fontRendererObj.drawString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.title.8"), bookXStart + 70, 20, 0x000000);

		boolean unicode = fontRendererObj.getUnicodeFlag();
		fontRendererObj.setUnicodeFlag(false);
		fontRendererObj.drawSplitString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.content.8"), bookXStart + 20, 60, WIDTH - 40, 0x000000);
		fontRendererObj.drawString((pageIndex + 1) + "/" + (bookTotalPages), bookXStart + 82, 215, 0x000000);
		fontRendererObj.setUnicodeFlag(unicode);
	}

	private void drawScreenTen() {
		fontRendererObj.drawString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.title.9"), bookXStart + 70, 20, 0x000000);

		boolean unicode = fontRendererObj.getUnicodeFlag();
		fontRendererObj.setUnicodeFlag(false);
		fontRendererObj.drawSplitString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.content.9"), bookXStart + 20, 60, WIDTH - 40, 0x000000);
		fontRendererObj.drawString((pageIndex + 1) + "/" + (bookTotalPages), bookXStart + 82, 215, 0x000000);
		fontRendererObj.setUnicodeFlag(unicode);
	}

	private void drawScreenEleven() {
		fontRendererObj.drawString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.title.10"), bookXStart + 70, 20, 0x000000);

		boolean unicode = fontRendererObj.getUnicodeFlag();
		fontRendererObj.setUnicodeFlag(false);
		fontRendererObj.drawSplitString(TextHelper.localize("gui." + ModInformation.ID + ".basebook.content.10"), bookXStart + 20, 60, WIDTH - 40, 0x000000);
		fontRendererObj.drawString((pageIndex + 1) + "/" + (bookTotalPages), bookXStart + 82, 215, 0x000000);
		fontRendererObj.setUnicodeFlag(unicode);
	}
 

anonymous

0

Dim ctlOB() ' to empty the collection
 

anonymous

-2

@EventHandler
	public void onInventoryClick(InventoryClickEvent event) {

		final Player player = (Player) event.getWhoClicked(); // The player that clicked the item
		final ItemStack clicked = event.getCurrentItem(); // The item that was clicked
		final Inventory inventory = event.getInventory(); // The inventory that was clicked in

		if (inventory.equals(Inv) || inventory.equals(powerRockInv) || inventory.equals(mutantmelonInv) || inventory.equals(gingerInv) || inventory.equals(spiceInv) || inventory.equals(sweetnerInv) || inventory.equals(cookieInv) || inventory.equals(chocolateInv) || inventory.equals(darkChocolateInv)) { // This is our inventory :D
			event.setCancelled(true); // Make it so the item cant be taken
			ItemStack is = event.getCurrentItem();
			ItemMeta im = is.getItemMeta();
			if(im.getDisplayName().equals("\2477\247lWrapper")) {
				if (econ.has(player, 25000)) {
					event.setCancelled(true); // Make it so the item cant be taken
					player.sendMessage(F.darkPurple + F.bold + "CANDIES" + F.gray + ": You have purchased x4 Wrapper for $25000");
					EconomyResponse r = econ.withdrawPlayer(player.getName(), 25000);
					wrapper.setAmount(4);
					player.getInventory().addItem(wrapper);
					player.updateInventory();
				}
				if (inventory.equals(Inv)) {
					if(im.getDisplayName().equals("\247c\247lPower \2474\247lRock")) {
						event.setCancelled(true); // Make it so the item cant be taken
						player.openInventory(powerRockInv);
						player.sendMessage(F.darkPurple + F.bold + "CANDIES" + F.gray + ": Navigating over to the Power Rock crafting GUI...");
					}else{
						if (inventory.equals(Inv)) {
							if(im.getDisplayName().equals("\2475\247lMutant \247d\247lMelon")) {
								event.setCancelled(true); // Make it so the item cant be taken
								player.openInventory(mutantmelonInv);
								player.sendMessage(F.darkPurple + F.bold + "CANDIES" + F.gray + ": Navigating over to the Mutant Melon crafting GUI...");
							}else{
								if (inventory.equals(Inv)) {
									if(im.getDisplayName().equals("\2476\247lGin\247r\247e\247lger")) {
										player.openInventory(gingerInv);
										player.sendMessage(F.darkPurple + F.bold + "CANDIES" + F.gray + ": Navigating over to the Ginger crafting GUI...");
										event.setCancelled(true); // Make it so the item cant be taken
									}else{
										if (inventory.equals(Inv)) {
											if(im.getDisplayName().equals("\2472\247lSpice")) {
												player.openInventory(spiceInv);
												player.sendMessage(F.darkPurple + F.bold + "CANDIES" + F.gray + ": Navigating over to the Spice crafting GUI...");
												event.setCancelled(true); // Make it so the item cant be taken
											}else{
												if(im.getDisplayName().equals("\2478\247lPepper")) {
													if (econ.has(player, 37500)) {
														event.setCancelled(true); // Make it so the item cant be taken
														player.sendMessage(F.darkPurple + F.bold + "CANDIES" + F.gray + ": You have purchased x8 Pepper for $37500");
														EconomyResponse r = econ.withdrawPlayer(player.getName(), 37500);
														pepper.setAmount(8);
														player.getInventory().addItem(pepper);
														player.updateInventory();
													}else{
														player.sendMessage(F.darkRed + F.bold + "FAULT" + F.gray + ": You do not have enough money for this candy! You need $37500 and you have $" + econ.getBalance(player));
													}}else{
														if (inventory.equals(Inv)) {
															if(im.getDisplayName().equals("\247f\247lSweet\2477\247lner")) {
																player.openInventory(sweetnerInv);
																player.sendMessage(F.darkPurple + F.bold + "CANDIES" + F.gray + ": Navigating over to the Sweetner crafting GUI...");
																event.setCancelled(true); // Make it so the item cant be taken
															}else{
																if (inventory.equals(Inv)) {
																	if(im.getDisplayName().equals("\247b\247lC\247e\247lO\247b\247lO\247e\247lK\247b\247lI\247e\247lE")) {
																		player.openInventory(cookieInv);
																		player.sendMessage(F.darkPurple + F.bold + "CANDIES" + F.gray + ": Navigating over to the Cookie crafting GUI...");
																		event.setCancelled(true); // Make it so the item cant be taken
																	}else{
																		if (inventory.equals(Inv)) {
																			if(im.getDisplayName().equals("\247e\247lChocolate")) {
																				player.openInventory(chocolateInv);
																				player.sendMessage(F.darkPurple + F.bold + "CANDIES" + F.gray + ": Navigating over to the Chocolate crafting GUI...");
																				event.setCancelled(true); // Make it so the item cant be taken
																			}else{
																				if (inventory.equals(Inv)) {
																					if(im.getDisplayName().equals("\2476\247lDark Chocolate")) {
																						player.openInventory(darkChocolateInv);
																						player.sendMessage(F.darkPurple + F.bold + "CANDIES" + F.gray + ": Navigating over to the Dark Chocolate crafting GUI...");
																						event.setCancelled(true); // Make it so the item cant be taken
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
 

anonymous

0

Public Sub RedefineTextArrayByRemovingLineFeedOnEachArrayMember(ByRef arrText, iTxtLimit)
' Purpose   : To redefine the array which contains text member when in member may have line feed within the text.
' Result    : an array which the member number may increase and each text member doesn't have line feed.
 

anonymous

+2

// static table for positive integer numbers below 65
const char *num_table[] = {
	"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"
	"11", "12", "13", "14", "15", "16", "17", "18", "19", "20",
	"21", "22", "23", "24", "25", "26", "27", "28", "29", "30",
	"31", "32", "33", "34", "35", "36", "37", "38", "39", "40",
	"41", "42", "43", "44", "45", "46", "47", "48", "49", "50",
	"51", "52", "53", "54", "55", "56", "57", "58", "59", "60",
	"61", "62", "63", "64" };
 

anonymous

+2

Function CompareTextsFromBehind(iTxt1, iTxt2) As Boolean
' Purposes      : to check characters in iTxt2 are continuously similar from behind with iTxt2
    
    CompareTextsFromBehind = False
    If Trim(iTxt1) = "" Then Exit Function
    If Trim(iTxt2) = "" Then Exit Function
    
    Dim char1
    Dim char2
    Dim len1
    len1 = Len(iTxt1)
    Dim len2
    len2 = Len(iTxt2)
    Dim i As Integer
    Dim j As Integer
    j = 0
    For i = 1 To len1
        char1 = Mid(StrReverse(iTxt1), i, 1)
        char2 = Mid(StrReverse(iTxt2), i, 1)
        If char1 <> char2 Then Exit For
        j = j + 1
    Next
    
    If j = len2 Then CompareTextsFromBehind = True
    
    CompareTextsFromBehind = iTxt1 = iTxt2
    
End Function
 

anonymous

+3

                    unset($dom, $NFe, $infNFe, $ide, $cUF, $cNF, $natOp,
                          $indPag, $mod, $serie, $nNF, $dhEmi, $dhSaiEnt,
                          $tpNF, $idDest, $cMunFG, $tpImp, $tpEmis, $cDV,
                          $tpAmb, $finNFe, $indFinal, $indPres, $procEmi, $verProc, $dhCont,
                          $xJust, $NFref, $refNFe, $refNF, $AAMM, $CNPJ,
                          $refNFP, $IE, $CPF, $refCTe, $refECF, $nECF,
                          $nCOO, $emit, $xNome, $xFant, $IEST, $IM, $cnae,
                          $CRT, $cnpj, $cpf, $enderEmi, $xLgr, $nro, $xCpl,
                          $xBairro, $cMin, $xMin, $cMun, $xMun, $UF, $CEP,
                          $cPais, $xPais, $fone, $dest, $ISUF, $email,
                          $enderDest, $retirada, $entrega, $det, $infAdProd,
                          $prod, $cProd, $cEAN, $xProd, $NCM, $NVE, $EXTIPI, $CFOP,
                          $uCom, $qCom, $vUnCom, $vProd, $cEANTrib, $uTrib,
                          $qtrib, $vUnTrib, $vFrete, $vSeg, $vDesc, $vOutro,
                          $indTot, $xPed, $nItemPed, $DI, $dDI, $xLocDesemb,
                          $UFDesemb, $dDesemb, $tpViaTransp, $vAFRMM, $tpIntermedio,
                          $UFTerceiro, $cExportador, $adi, $nAdicao,
                          $nSeqAdicC, $cFabricante, $vDescDI, $nDraw,
                          $detExport, $exportInd, $nRE, $chNFe, $qExport, $veicProd, $tpOP,
                          $chassi, $cCor, $xCor, $pot, $cilin, $pesoL, $pesoB,
                          $nSerie, $tpComb, $nMotor, $CMT, $dist, $anoMod,
                          $anoFab, $tpPint, $tpVeic, $espVeic, $VIN, $condVeic,
                          $cMod, $cCorDENATRAN, $lota, $tpRest, $med, $nLote,
                          $qLote, $dFab, $dVal, $vPMC, $arm, $tpArma, $nCano,
                          $descr, $comb, $cProdANP, $CODIG, $qTemp, $UFCons,
                          $CIDE, $qBCprod, $vAliqProd, $vCIDE, $imposto, $ICMS,
                          $ICMS00, $orig, $CST, $modBC, $vBC, $pICMS, $vICMS,
                          $ICMS10, $modBCST, $pMVAST, $pRedBCST, $vBCST, $pICMSST,
                          $vICMSST, $ICMS20, $pRedBC, $ICMS30, $ICMS40, $motDesICMS,
                          $vICMSOp, $pDif, $vICMSDif, $vICMSDeson,
                          $dCompet, $vDeducao, $vDescIncond, $vDescCond, $vISSRet, $cRegTrib,
                          $ICMS51, $ICMS60, $ICMS70, $ICMS90, $ICMSPart,
                          $pBCOp, $UFST, $ICMSST, $vICMSSTRet, $vBCSTRet,
                          $vBCSTDest, $vICMSSTDest, $ICMSSN101, $CSOSN,
                          $pCredSN, $vCredICMSSN, $ICMSSN102, $ICMSSN201,
                          $ICMSSN202, $ICMSSN500, $ICMSSN900, $IPI, $clEnq,
                          $CNPJProd, $cSelo, $qSelo, $cEnq, $IPITrib, $vIPI,
                          $pIPI, $qUnid, $vUnid, $IPINT, $II, $vDespAdu,
                          $vII, $vIOF, $PIS, $PISAliq, $pPIS, $vPIS,
                          $PIDQtde, $qBCProd, $PISNT, $PISOutr, $pPIST,
                          $PISST, $COFINS, $COFINSAliq, $pCOFINS, $vCOFINS,
                          $COFINSQtde, $COFINSNT, $COFINSOutr, $COFINSST,
                          $ISSQN, $vISSQN, $cListServ, $cSitTrib, $total,
                          $ICMSTot, $vST, $vNF, $ISSQNtot, $vServ, $vISS,
                          $retTrib, $vRetPIS, $vRetCOFINS, $vRetCSLL,
                          $vBCIRRF, $vIRRF, $vBCRetPrev, $vRetPrev,
                          $transp, $modFrete, $transportadora, $xEnder,
                          $retTransp, $vBCRet, $pICMSRet, $veicTransp,
                          $placa, $RNTC, $reboque, $vagao, $balsa, $vol,
                          $qVol, $esp, $marca, $nVol, $lacres, $nLacres,
                          $cobr, $fat, $nFat, $vOrig, $vLiq, $dup, $nDup,
                          $dVenc, $vDup, $tPag, $vPag, $card, $tBand, $cAut,
                          $infAdic, $infAdFisco, $infCpl,
                          $infNFE, $obsCont, $xTexto, $obsFisco, $procRef,
                          $nProc, $exporta, $UFSaidaPais, $xLocExporta, $xLocDespacho, $compra,
                          $xNEmp, $xCont, $cana, $safra, $qTotMes, $qTotAnt,
                          $qTotGer, $vFor, $vTotDed, $vLiqFor, $forDia, $dia,
                          $qtde, $deduc, $xDed, $vDed, $vTotTrib);
 

anonymous

+4

$('body *:visible').hide().show();
$('body *:not(:visible)').show().hide()
 

+3

if ( matrice[i][j] == 0 || matrice[i][j] != 0) {
...
}
 

0

var name = $(this).parent().parent().children().first().text();
 

anonymous

0

// You're all a bunch of fucking snobs. Any code is an effort made to learn.
 

anonymous

-2

.buy-button
{
  -webkit-transform: rotate(360deg);
  -moz-transform: scale(0.9999);
  /* no other rules */
}
 

anonymous

0

<div id="dItemsT">
<span id="dItemsT2">
<img class="hiddenOnFull" border="0" align="absmiddle" width="28" height="26" style="cursor:pointer;margin-right:15px; padding-top:-3px;" onclick="history.go(-1);" src="/images/images_TEST6/back.png">
<img class="hiddenOnMobile" border="0" align="absmiddle" width="36" height="64" style="cursor:pointer;margin-right:15px; padding-top:-3px;" onclick="history.go(-1);" src="/images/images_TEST6/back_96.png">
<span id="dItemsSciezka">
<span style="cursor:pointer; color:#0064B4" onclick="ajax_link('/katalog/1,0,CB-Radio,scr_dTree/000000,N00055/');">Akcesoria</span>
/
<span style="cursor:pointer; color:#0064B4" onclick="ajax_link('/katalog/1,0,CB-Radio,scr_dTree/000000,N00055,N00080/');">CB Radio</span>
</span>
</span>
</div>
 

anonymous

+1

If InStr(aStr, "MATERIAL") Then gotIt = True
        If gotIt = True Then
            If InStr(aStr, "<") And InStr(aStr, ">") Then
                If InStr(aStr, "<*MATERIAL>") Then aStr = Replace(aStr, "<*MATERIAL>", CurrentMainMaterial.name)
 

+5

	case '0':
		$controller->$segments[1]();
		break;
	case '1':
		$controller->$segments[1]($matched[0]);
		break;
	case '2':
		$controller->$segments[1]($matched[0],$matched[1]);
		break;
	case '3':
		$controller->$segments[1]($matched[0],$matched[1],$matched[2]);
		break;
	case '4':
		$controller->$segments[1]($matched[0],$matched[1],$matched[2],$matched[3]);
		break;
	case '5':
		$controller->$segments[1]($matched[0],$matched[1],$matched[2],$matched[3],$matched[4]);
		break;
	case '6':
		$controller->$segments[1]($matched[0],$matched[1],$matched[2],$matched[3],$matched[4],$matched[5]);
		break;
	case '7':
		$controller->$segments[1]($matched[0],$matched[1],$matched[2],$matched[3],$matched[4],$matched[5],$matched[6]);
		break;
	case '8':
		$controller->$segments[1]($matched[0],$matched[1],$matched[2],$matched[3],$matched[4],$matched[5],$matched[6],$matched[7]);
		break;
	case '9':
		$controller->$segments[1]($matched[0],$matched[1],$matched[2],$matched[3],$matched[4],$matched[5],$matched[6],$matched[7],$matched[8]);
		break;
	case '10':
		$controller->$segments[1]($matched[0],$matched[1],$matched[2],$matched[3],$matched[4],$matched[5],$matched[6],$matched[7],$matched[8],$matched[9]);
		break;
}
 

anonymous

-4

!important
 

anonymous

+1

<!-- Code found in actual website -->
<!-- Good luck editing the button's link! -->
<p align="center">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="103" height="24">
    <param name="BGCOLOR" value="">
    <param name="movie" value="button99.swf">
    <param name="quality" value="high">
    <embed src="../Flash/button99.swf"  quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="103" height="24" ></embed>
  </object>
</p>
 

anonymous

-3

#if you edit these lines you will get the curse of amazonian indian
-- begin of weird multidimensional mindfuck spaguetti code --
 

anonymous

+8

$foo = $foo; // DO NOT remove this, it will break EVERYTHING
// ... Fuck, that really did break everything
 

anonymous

+3

if (optionQ != "undefined" && optionQ == "true")
 

anonymous

+2

function GETTER_FOR($property) { return 'get'.$property; }
 

0

// how to check if a string is a valid dollar amount

        var str = $('#priceField').val();
        var res;
        res = str.substring(1, 0);
 
        if (res != "$" && res.length > 0) {
            str = "$" + str;
            var res1 = str.substring(str.length, 1);
 
            if (res1.length > 0) {
                var chk1 = res1.split('.');
                if (chk1.length > 1) {
                    if (!$.isNumeric(chk1[0])) {
                        alert('Please enter valid amount.');
                        return false;
                    }
                    if (chk1[1] != '') {
                        if (chk1[1].length > 2) {
                            alert('Please enter valid amount.');
                            return false;
                        }
                        else {
                            if (!$.isNumeric(chk1[1])) {
                                alert('Please enter valid amount.');
                                return false;
                            }
                        }
                    }
                    else {
                        alert('Please enter valid amount.');
                        return false;
                    }
                }
                else {
 
                    if (!$.isNumeric(chk1[0])) {
                        alert('Please enter valid amount.');
                        return false;
                    }
                }
            }
            else {
                if (res.length > 0) {
                    alert('Please enter valid amount.');
                    return false;
                }
            }
        }
        else {
            var res1 = str.substring(str.length, 1);
 
            if (res1.length > 0) {
                var chk1 = res1.split('.');
                if (chk1.length > 1) {
                    if (!$.isNumeric(chk1[0])) {
                        alert('Please enter valid amount.');
                        return false;
                    }
                    if (chk1[1] != '') {
                        if (chk1[1].length > 2) {
                            alert('Please enter valid amount.');
                            return false;
                        }
                        else {
                            if (!$.isNumeric(chk1[1])) {
                                alert('Please enter valid amount.');
                                return false;
                            }
                        }
                    }
                    else {
                        alert('Please enter valid amount.');
                        return false;
                    }
                }
                else {
 
                    if (!$.isNumeric(chk1[0])) {
                        alert('Please enter valid amount.');
                        return false;
                    }
                }
            }
            else {
                if (res.length > 0) {
                    alert('Please enter valid amount.');
                    return false;
                }
            }
        }
 

+1

$sqlinjection = false;

[a piece of code that modifies different variable]

if ($sqlinjection)
{
    echo 'Attack attempt detected';
}
 

+5

if (preg_match("/delete from|update|insert into|create|alter table|alter column|drop table|drop column|execute|shutdown(...)/i", $string)) {
        exit('Attack attempt detected!');
}
 

+4

int result = uow.Db.UpsertDetails(1, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", 1);
 

anonymous

-1

'''The job was to create a calculator which get an expression like this
3+4*4^(12-3) as argument and calculate it, our teacher sad we can use any programing language,
this is my solution'''

import os, sys
os.system('python -c "print ' + sys.argv[1].replace('^', '**') + '"')
 

anonymous

+4

#define ZERO 512
 

+6

private bool ValidateDate()
{
    try
    {
        DateTime date;
        if (DateTime.TryParse(txtFechaCalculo.Text, out date))
        {
            return true;
        }
        else
        {
            throw new Exception("Invalid Date");
        }
    }
    catch (Exception ex)
    {
        return false;
    }
}
 

anonymous

+1

i32 AaCpuAtomicSwap32(TAaCpuAtomic32* atomic, i32 value)
{
i32 prev;

/** @todo Implement to be really atomic operation */

prev = atomic->data;
atomic->data = value;

return prev;
} /* AaCpuAtomicCmpSwap32 */
 

anonymous

+3

try {
            ...
        } catch (Exception e) {
            try {
                throw e;
            } catch (Exception e1) {
                e1.printStackTrace();
            }
        }
 

anonymous

0

$price = '';
        foreach($orderItemBasket as $p) {
            $price .= "(".$p->getValue().'*';
            if($p->getProduct()->getProposedPrice() == ''){
                $price .= '0)+';
            }
            else{
                $price .= $p->getProduct()->getProposedPrice().')+';
            }

        }
$price = (substr($price, 0, -1));
echo eval($price);
 

anonymous

+3

config.camray_z_threshold_that_needs_a_descriptive_name = cos(135.f * 3.14159265f / 180.f);    // todo
 

anonymous

+5

# I know explicit is better than implicit, but...

def process_results(results=None, **kwargs):
    if results is None:
        results = None

    # other stuff
 

+4

// taken from graphael: https://github.com/DmitryBaranovskiy/g.raphael/blob/master/g.raphael.js#L303
this.attr(this.attrs.x ? 'x' : 'cx', x + h + d + (!center ? this.type == 'text' ? bb.width : 0 : bb.width / 2)).attr('y', center ? y : y - bb.height / 2);