-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
42 lines (31 loc) · 1.16 KB
/
index.php
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
<?php
/*
*
* @author Juris Malinens<[email protected]>
* @version 0.1
*/
define('FLD_DIRS', 9);
$nVersion = isset($_GET['version']) ? $_GET['version'] : 0;
$sAction = isset($_GET['action']) ? $_GET['action'] : 'parse'; //times
//$raw_data_masiivs = ["1600", "", "", "E.Birznieka-Upīša", "E. Birznieka - Upīša iela", "", "2412378", "5694854", "0074,0709,2072", "143", "1", "158", "1", "214", "1", "354", "0", "355", "15", "357", "13", "358", "9"];
//$raw_data_masiivs[9] = 143;
//count($raw_data_masivs) = 23;
//for ($c = FLD_DIRS; $c < count($raw_data_masivs); $c += 2) {
// $H = +$raw_data_masivs[$c + 1];
//for ($O = $M + $H * $M; $N--; ) {
//} //var O
//} //var c
require "classes/Stops.php";
//$Stops = new Stops();
//$aStops = $Stops->parse("data/stops.txt");
require "controllers/$sAction.php";
/*$x = explodeTimes();
$nWorkdaysLength = $nWorkdaysLength2 = count($x['workdays']);
for ($nWorkdaysLength; $nWorkdaysLength2--; ) {
//255 un zemāk
$minute = $x['times'][$nWorkdaysLength2];
$nRealMinute = $minute % 60;
echo $nRealMinute." <br/>\n";
}
*/
$sCmd = "echo require('fs');eval(fs.readFileSync('./planner2.js', 'utf8')); | node";