-
+136
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
<?
if(isset($_GET['lllll'])) $true='true';
else $true='false';
?>
<html>
<head>
<script type=text/js>
var lolll=<?php echo "{$true}" ; ?>;
if(lolll==true) document.getElementById("aaabb").setAttribute('style',"display:none") /*nividimost*/
</script>
...
Очередной школокод?
AlexT,
26 Ноября 2011
-
+165
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
function SetAccounts($user, $sys)
{
$resp = MySQL::Query("SELECT * FROM `accs` WHERE `user`='".$user."' AND `sys`='".$sys."'");
$userid = "";
$dotsys = "";
while($ob = MySQL::Fetch($resp))
{
$userid = $ob["user"];
$dotsys = $ob["sys"];
$to_build = $ob["from"];
}
Нужно было подставить значения $user и $sys
mtu,
26 Ноября 2011
-
+1003
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
namespace ExtensionMethods
{
public static class MyExtensions
{
public static int WordCount(this String str)
{
return str.Split(new char[] { ' ', '.', '?' },
StringSplitOptions.RemoveEmptyEntries).Length;
}
}
}
....
string s = "Hello Extension Methods";
int i = s.WordCount();
http://msdn.microsoft.com/en-us/library/bb383977.aspx
In your code you invoke the extension method with instance method syntax. However, the intermediate language (IL) generated by the compiler translates your code into a call on the static method. Therefore, the principle of encapsulation is not really being violated. In fact, extension methods cannot access private variables in the type they are extending.
Синтаксический сахар. Бессмысленный и беспощадный.
Ждк, когда шарпоблядки уже начнут дохнуть от диабета.
3.14159265,
26 Ноября 2011
-
−340
- 1
- 2
-- All scripts should begin at line
null, Null, NULL = nil
Lua
istem,
26 Ноября 2011
-
+102
- 1
#define HESHELME_BESHELME(x, y) (((x)>0)<<2 | ((y)>0)<<1 | ((x) > ((x)*(y) > 0 ? (y) : -(y))))
двумерное "квантование" точки
orion,
26 Ноября 2011
-
+145
- 1
http://light-radio.com/dev/
Изучал Канвас. Открывайте исходный код и удивляйтесь =)
Столько говна я наверно еще никогда не писал.
KirAmp,
25 Ноября 2011
-
+174
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
<?php
$k=0;
$TheFile1="tema.txt";
$Open12=fopen($TheFile1,"r");
$Tema=file($TheFile1);
fclose($Open12);
for ($i=0;$i<count($Tema);$i++){ // внимание
$k=$i;
$tema=$Tema[$k];
$TheFile="name.txt";
$Open = fopen($TheFile,"r");
$File1=file($TheFile);
$name=$File1[$k];
fclose($Open);
$TheFile="surname.txt";
$Open = fopen($TheFile,"r");
$File2=file($TheFile);
$surname=$File2[$k];
fclose($Open);
// еще два файла.
echo('<tr>
<td width="5%">'.$k1.'</td>
<td width="25%">'.$name.' '.$surname.'</td>
<td width="30%">'.$tema.'</td>
<td width="15%">'.$town.'</td>
<td width="15%">'.$univ.'</td>
</tr>');
}
echo('</table> ');
?>
Вот что можно найти, взяв на редактирование сайт конференции программистов.
Если самого рнр мало - сорц: http://programmer-conference.org.ua/spis.phpx
Actine,
25 Ноября 2011
-
+121
PHI
TarasGovno,
25 Ноября 2011
-
+106
- 1
- 2
- 3
- 4
- 5
- 6
if ( 0 == strcmp( executable, "" ) ||
0 == strcmp( executable, "NONE" ) ||
0 == strcmp( executable, "none" ) ||
0 == strcmp( executable, "None" ) )
{
/* ... */
... ровно так документация и описывает данный параметр: либо пустая строка, либо case-insensitive строка NONE.
Dummy00001,
25 Ноября 2011
-
+136
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
<ui:param name="success_style" value="color:green;"/>
<ui:param name="error_style" value="color:red;"/>
<!-- some code -->
<h:outputText rendered="#{model.successSubmitted}"
value="#{membershipReportsLabels.serviceSucceed}"
style="#{success_style}"/>
<h:outputText rendered="#{model.unSuccessSubmitted}"
value="#{membershipReportsLabels.serviceUnSucceed}"
style="#{error_style}"/>
Вроде jsf тут ещё не было. Яркое подтверждение того, что CSS придумали трусы.
roman-kashitsyn,
25 Ноября 2011