-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2.php
26 lines (25 loc) · 782 Bytes
/
2.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
<?php
define('ROOT_DIR', dirname(__FILE__));
include_once(ROOT_DIR.'/config.php');
include_once(ROOT_DIR.'/func.php');
include_once(ROOT_DIR.'/curl.php');
include_once(ROOT_DIR.'/dbm.class.php');
if(isset($_GET['string'])){
$db = new DBM();
$db->DBManager('localhost', '', '', 'effect');
$names = explode(',', $_GET['string']);
$tmp = checkNames($names);
$urls = linkCreater($tmp['names']);
$result = batchGet($urls) ;
$data = processData($result);
if(count($data) > 0) {
$data = arraySpecialMerge($tmp['str'], $data);
insertData($data);
} else {
$data = &$tmp['str'];
}
}
if(count($data) > 0){
include('show.php');
}
?>