Subversion Repositories cheapmusic

Rev

Rev 86 | Rev 93 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 86 Rev 91
Line 8... Line 8...
8
include_once ('php/linkshare.php');
8
include_once ('php/linkshare.php');
9
include_once ('php/cjaffiliate.php');
9
include_once ('php/cjaffiliate.php');
10
include_once ('php/walmart.php');
10
include_once ('php/walmart.php');
11
include_once ('php/itunes.php');
11
include_once ('php/itunes.php');
12
include_once ('php/amazon.php');
12
include_once ('php/amazon.php');
-
 
13
include_once ('php/amazon_scrape.php');
13
include_once ('php/impact.php');
14
include_once ('php/impact.php');
14
 
15
 
15
error_reporting(E_ALL);
16
error_reporting(E_ALL);
16
 
17
 
17
// search
18
// search
Line 99... Line 100...
99
    if ($_SESSION["filterCondition"]["New"]) {
100
    if ($_SESSION["filterCondition"]["New"]) {
100
        $arr = get_vendor($arr, 'get_itunes', $searchKey, constant("NEW"));
101
        $arr = get_vendor($arr, 'get_itunes', $searchKey, constant("NEW"));
101
    }
102
    }
102
    if (!$batchFlag) { updatePbFile(); }
103
    if (!$batchFlag) { updatePbFile(); }
103
 
104
 
-
 
105
    $cntArr = count($arr);
104
    $arr = get_vendor($arr, 'get_amazon', $searchKey, constant("NEW"));
106
    $arr = get_vendor($arr, 'get_amazon', $searchKey, constant("NEW"));
-
 
107
    if ($cntArr == count($arr)) {
-
 
108
        $arr = get_vendor($arr, 'get_amazon_scrape', $searchKey, constant("NEW"));
-
 
109
    }
105
    if (!$batchFlag) { updatePbFile(); }
110
    if (!$batchFlag) { updatePbFile(); }
106
 
111
 
107
    $arr = get_vendor($arr, 'get_impact', $searchKey, constant("NEW"));
112
    $arr = get_vendor($arr, 'get_impact', $searchKey, constant("NEW"));
108
    if (!$batchFlag) { updatePbFile(); }
113
    if (!$batchFlag) { updatePbFile(); }
109
 
114