Subversion Repositories cheapmusic

Rev

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

Rev 82 Rev 83
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/impact.php');
13
 
14
 
14
error_reporting(E_ALL);
15
error_reporting(E_ALL);
15
 
16
 
16
// search
17
// search
17
function performSearch() {
18
function performSearch() {
Line 99... Line 100...
99
        $arr = get_vendor($arr, 'get_itunes', $searchKey, constant("NEW"));
100
        $arr = get_vendor($arr, 'get_itunes', $searchKey, constant("NEW"));
100
    }
101
    }
101
    if (!$batchFlag) { updatePbFile(); }
102
    if (!$batchFlag) { updatePbFile(); }
102
 
103
 
103
    $arr = get_vendor($arr, 'get_amazon', $searchKey, constant("NEW"));
104
    $arr = get_vendor($arr, 'get_amazon', $searchKey, constant("NEW"));
-
 
105
    if (!$batchFlag) { updatePbFile(); }
-
 
106
 
-
 
107
    $arr = get_vendor($arr, 'get_impact', $searchKey, constant("NEW"));
104
    if (!$batchFlag) { updatePbFile(); }
108
    if (!$batchFlag) { updatePbFile(); }
105
 
109
 
106
    if ($_SESSION["filterCondition"]["Used"]) {
110
    if ($_SESSION["filterCondition"]["Used"]) {
107
        $arr = get_vendor($arr, 'get_ebay', $searchKey, constant("USED"));
111
        $arr = get_vendor($arr, 'get_ebay', $searchKey, constant("USED"));
108
    }
112
    }
Line 1297... Line 1301...
1297
    }
1301
    }
1298
}
1302
}
1299
 
1303
 
1300
// Update progressbar file for a session
1304
// Update progressbar file for a session
1301
function updatePbFile($flag = false) {
1305
function updatePbFile($flag = false) {
1302
    static $max_pb = 13; // max progressbar steps
1306
    static $max_pb = 14; // max progressbar steps
1303
    static $current = 0;
1307
    static $current = 0;
1304
 
1308
 
1305
    if ($flag) {
1309
    if ($flag) {
1306
        $current = 0;
1310
        $current = 0;
1307
    }
1311
    }