Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php
2
echo showSectionHead($spTextLog['Crawl Log Details']);
3
 
4
// crawl log is for keyword
5
if ($logInfo['crawl_type'] == 'keyword') {
6
 
7
	// if ref is is integer get keyword name
8
	if (!empty($logInfo['keyword'])) {
9
		$listInfo['ref_id'] = $listInfo['keyword'];
10
	}
11
 
12
	// find search engine info
13
	if (preg_match("/^\d+$/", $logInfo['subject'])) {
14
		$seCtrler = new SearchEngineController();
15
		$seInfo = $seCtrler->__getsearchEngineInfo($logInfo['subject']);
16
		$logInfo['subject'] = $seInfo['domain'];
17
	}
18
 
19
}
20
?>
21
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
22
	<tr class="listHead">
23
		<td class="left" width='30%'><?php echo $spTextLog['Crawl Log Details']?></td>
24
		<td class="right">&nbsp;</td>
25
	</tr>
26
	<tr class="white_row">
27
		<td class="td_left_col"><?php echo $spText['label']['Report Type']?>:</td>
28
		<td class="td_right_col"><?php echo $logInfo['crawl_type']?></td>
29
	</tr>
30
	<tr class="blue_row">
31
		<td class="td_left_col"><?php echo $spText['label']['Reference']?>:</td>
32
		<td class="td_right_col"><?php echo $logInfo['ref_id']?></td>
33
	</tr>
34
	<tr class="white_row">
35
		<td class="td_left_col"><?php echo $spText['label']['Subject']?>:</td>
36
		<td class="td_right_col"><?php echo $logInfo['subject']?></td>
37
	</tr>
38
	<tr class="blue_row">
39
		<td class="td_left_col"><?php echo $spText['common']['Url']?>:</td>
40
		<td class="td_right_col"><?php echo $logInfo['crawl_link']?></td>
41
	</tr>
42
	<tr class="white_row">
43
		<td class="td_left_col"><?php echo $spText['label']['Referer']?>:</td>
44
		<td class="td_right_col"><?php echo $logInfo['crawl_referer']?></td>
45
	</tr>
46
	<tr class="blue_row">
47
		<td class="td_left_col"><?php echo $spText['label']['Cookie']?>:</td>
48
		<td class="td_right_col"><?php echo $logInfo['crawl_cookie']?></td>
49
	</tr>
50
	<tr class="white_row">
51
		<td class="td_left_col"><?php echo $spTextLog['Post Fields']?>:</td>
52
		<td class="td_right_col"><?php echo $logInfo['crawl_post_fields']?></td>
53
	</tr>
54
	<tr class="blue_row">
55
		<td class="td_left_col"><?php echo $spText['label']['User agent']?>:</td>
56
		<td class="td_right_col"><?php echo $logInfo['crawl_useragent']?></td>
57
	</tr>
58
	<tr class="white_row">
59
		<td class="td_left_col"><?php echo $spText['label']['Proxy']?>:</td>
60
		<td class="td_right_col"><?php echo $logInfo['proxy_id']?></td>
61
	</tr>
62
	<tr class="blue_row">
63
		<td class="td_left_col"><?php echo $spText['common']['Details']?>:</td>
64
		<td class="td_right_col"><?php echo $logInfo['log_message']?></td>
65
	</tr>
66
	<tr class="white_row">
67
		<td class="td_left_col"><?php echo $spText['common']['Status']?>:</td>
68
		<td class="td_right_col">
69
			<?php
70
			if ($logInfo['crawl_status']) {
71
				echo "<b class='success'>{$spText['label']['Success']}</b>";
72
			} else {
73
				echo "<b class='error'>{$spText['label']['Fail']}</b>";
74
			}
75
			?>
76
		</td>
77
	</tr>
78
	<tr class="blue_row">
79
		<td class="td_left_col"><?php echo $spText['label']['Updated']?>:</td>
80
		<td class="td_right_col"><?php echo $logInfo['crawl_time']?></td>
81
	</tr>
82
	<tr class="white_row">
83
		<td class="tab_left_bot_noborder"></td>
84
		<td class="tab_right_bot"></td>
85
	</tr>
86
	<tr class="listBot">
87
		<td class="left" colspan="1"></td>
88
		<td class="right"></td>
89
	</tr>
90
</table>
91
<br><br>