"; $keyw=""; //$text_0000[0]=$tx[notes_list_01]; //$text_0000[1]=$tx[notes_list_02]; //$text_0000[2]=$tx[notes_list_03]; $text_0000[3]=$kalendar; $text_0000[4]=""; $text_0000[5]=""; $text_0000[6]=""; $text_0000[7]=""; function head($titl, $keyw, $styl, $tx){ $head=" ".$styl." ".$titl."
".@$tx["LOGO"]."
".@$tx["TEXT_LOGO"]."
".@$tx["MENU_01"]."
"; return $head; } function cent($tx, $text_0000) { $menus=" ".$text_0000[0]." ".$text_0000[1]." ".$text_0000[2]." ".$text_0000[5]."

"; return $menus; } function fut($tx) { $fut="
Techemy 2009
e-mail: techemycom@gmail.com

bitcoin accepted here

"; return $fut; } ?> ".$tx_altas["notes_list_04b"]." ".$stat_01." ".$tx_altas["notes_list_04d"]." ".$stat_03." "; return $stat_inf; } // функция проверки и загрузки файла function file_task($tx_altas) { $error = NULL; if($_FILES["order_file"]["name"] !== "" & $_FILES["order_file"]["name"] !== NULL) { $you_file = $_FILES["order_file"]["tmp_name"]; $you_file_size = $_FILES["order_file"]["size"]; if($you_file_size>$tx_altas["file_task_01"]) {$error="".$tx_altas["file_task_02"]."";} $myfile_type = $_FILES["order_file"]["type"]; $you_file_flag = $_FILES["order_file"]["error"]; $you_file_name = $_FILES["order_file"]["name"]; $format=strpos($tx_altas["file_task_03"], strrchr($you_file_name, ".")); if(gettype($format)!=="integer") {$error="".$tx_altas["file_task_04"]."";} // проверка загружаемого формата }else {$error = "";} $n_task = count(scandir("../altas/file_tasked/"))-1; $type_file = explode(".", $you_file_name); if($error === NULL) { copy($you_file, "../altas/file_tasked/".$you_file_name); $error = mb_substr("000000".$n_task, strlen("000000".$n_task)-6, 6).".".$type_file[1]; rename("../altas/file_tasked/".$you_file_name, "../altas/file_tasked/".mb_substr("000000".$n_task, strlen("000000".$n_task)-6, 6).".".$type_file[1]); } return $error; } function altas($dat, $text_0000, $tx_altas, $tx){ if($dat!==NULL & $dat!=="") { if(time()>strtotime($dat." ".$text_0000[4]["order_time"])) { $conv_d = date("d.m.Y H:i", strtotime($dat." ".$text_0000[4]["order_time"])); $dat = $conv_d.$tx_altas["order_12"].date("d.m.Y H:i", time() + $tx_altas["order_11"]); $class_dat = "".$dat.""; } else { $dat = date("d.m.Y", strtotime($dat)); $class_dat = "".$dat.""; } } else { $dat = $tx_altas["order_02"]; $class_dat = "".$dat.""; } /* $zer = mb_substr($text_0000[4]["order_time"], 0, 2); // --------------------------------- $option = ""; for ($i=$zer; $i<24+$zer; $i++) { if($i>23) {$t = -24 + $i;} else {$t = $i;} if($zer === $t) { $option = $option.""; } else { $opt_time = mb_substr("00".$t, strlen("00".$t)-2, 2); $option = $option.""; } } */ // -------------------------------------------------------------------------------- $ok_t = ""; $you_file = ""; if( $text_0000[4]["e_mail"] !== $tx["text_err_01"] & $text_0000[4]["e_mail"] !== "" & $text_0000[4]["e_mail"] !== NULL) { $codes = file("../altas/img_post/xpos.dat"); $codes = unserialize($codes[0]); $code = file("../altas/img_post/location.dat"); if(strpos($codes[$code[0]], md5($text_0000[4]["order_task_code"])) !== FALSE) { $text_0000[4]["file_error"] = file_task($tx_altas); if(strlen($text_0000[4]["file_error"]) < 12 && strlen($text_0000[4]["file_error"]) > 9) { $ok_t = order_task($dat, $text_0000, $tx_altas, $tx); }else{ $ok_t = ""; } }else{ $ok_t = ""; $text_0000[4]["file_error"] = ""; } } if($ok_t === 1) { $altas = ""; echo ""; }else{ $img_post = img_post($text_0000); /* $altas = "
\"\" ".$tx_altas["order_06"]."
".$tx_altas["order_01"]."
".$tx_altas["notes_list_04e"]." ".date("d.m.Y H:i", time()+$tx_altas["notes_list_04f"])."
".$class_dat."
".$tx_altas["order_08"]."
".$tx_altas["order_03"]."
".$text_0000[4]["file_error"]."
".$tx_altas["order_04"]."
  ".$tx_altas["order_07"]."
".$tx_altas["order_05"]." (".$tx_altas["order_09"]."):
\"\"

";*/ $altas = ""; } return $altas; } //------------------------------------------------------------------------------------------------------------- // вход в систему function log_in($text_0000, $tx_altas, $tx) { $log_in = "
".$tx["log_in_01"]."
".$tx["log_in_02"]."
"; return $log_in; } // функция создания листов и количества строк в листе function n_list($data_task, $tx_altas, $num_str) { $list_str = array_chunk($data_task, $tx_altas["ts_text_11"]); for($n=0; $n".($n+1).""; } $n_list[0] = $list_str[0]; $n_list[1] = "".implode("", $n_str)."
"; return $n_list; } // функция отображения таблицы активности function tab_activ($tx_altas, $num_str) { $data_task = file("a_file.dat"); $data_task = array_reverse($data_task); $tab_str = ""; $class_str = 1; $n_list = n_list($data_task, $tx_altas, $num_str); $data_task = $n_list[0]; for($t=0; $t ".$tx_altas["ts_text_09"]." ".mb_substr($array_dat[2], 0, 6)." ".date("d.m.y H:i", $array_dat[7])." ".$tx_altas["ts_text_10"]." ".$array_dat[4]." ".date("d.m.y H:i", $array_dat[1])." ".$array_dat[8]." "; if($class_str===2) {$class_str=1;} else {$class_str=2;} } $tab_str = implode("", $tab_str); $tab_activ = "
".$tab_str."
".$n_list[1]."
".$tx_altas["ts_text_02"]." ".$tx_altas["ts_text_03"]." ".$tx_altas["ts_text_04"]." ".$tx_altas["ts_text_05"]." ".$tx_altas["ts_text_06"]." (".$tx_altas["order_07"].") ".$tx_altas["ts_text_07"]." ".$tx_altas["ts_text_08"]."
".$n_list[1]."
"; return $tab_activ; } ?>