mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fixed the scraper call
This commit is contained in:
+9
-9
@@ -9,7 +9,7 @@ require_once(dirname(__FILE__) . "/../lib/showsleep.php");
|
||||
require_once(dirname(__FILE__) . "/../lib/functions.php");
|
||||
|
||||
|
||||
$version = "0.3r1142";
|
||||
$version = "0.3r1143";
|
||||
|
||||
$db = new DB();
|
||||
$functions = new Functions();
|
||||
@@ -1896,28 +1896,28 @@ while ($i > 0) {
|
||||
$DIR = dirname(__FILE__);
|
||||
$ircscraper = $DIR . "/../lib/IRCScraper/scrape.php";
|
||||
shell_exec("tmux respawnp -t${tmux_session}:4.0 ' \
|
||||
$_php $ircscraper cz false false true'"
|
||||
$_php $ircscraper true'"
|
||||
);
|
||||
//Check to see if the pane is dead, if so respawn it.
|
||||
if (shell_exec("tmux list-panes -t${tmux_session}:4 | grep ^0 | grep -c dead") == 1) {
|
||||
$DIR = dirname(__FILE__);
|
||||
$ircscraper = $DIR . "/../lib/IRCScraper/scrape.php";
|
||||
shell_exec("tmux respawnp -t${tmux_session}:4.0 ' \
|
||||
$_php $ircscraper cz false false true'"
|
||||
$_php $ircscraper true'"
|
||||
);
|
||||
}
|
||||
} else if ($scrape_cz == 1) {
|
||||
$DIR = dirname(__FILE__);
|
||||
$ircscraper = $DIR . "/../lib/IRCScraper/scrape.php";
|
||||
shell_exec("tmux respawnp -t${tmux_session}:4.0 ' \
|
||||
$_php $ircscraper cz false false true'"
|
||||
$_php $ircscraper true'"
|
||||
);
|
||||
//Check to see if the pane is dead, if so respawn it.
|
||||
if (shell_exec("tmux list-panes -t${tmux_session}:4 | grep ^0 | grep -c dead") == 1) {
|
||||
$DIR = dirname(__FILE__);
|
||||
$ircscraper = $DIR . "/../lib/IRCScraper/scrape.php";
|
||||
shell_exec("tmux respawnp -t${tmux_session}:4.0 ' \
|
||||
$_php $ircscraper cz false false true'"
|
||||
$_php $ircscraper true'"
|
||||
);
|
||||
}
|
||||
} else {
|
||||
@@ -1930,28 +1930,28 @@ while ($i > 0) {
|
||||
$DIR = dirname(__FILE__);
|
||||
$ircscraper = $DIR . "/../lib/IRCScraper/scrape.php";
|
||||
shell_exec("tmux respawnp -t${tmux_session}:4.1 ' \
|
||||
$_php $ircscraper efnet false false true'"
|
||||
$_php $ircscraper true'"
|
||||
);
|
||||
//Check to see if the pane is dead, if so respawn it.
|
||||
if (shell_exec("tmux list-panes -t${tmux_session}:4 | grep ^1 | grep -c dead") == 1) {
|
||||
$DIR = dirname(__FILE__);
|
||||
$ircscraper = $DIR . "/../lib/IRCScraper/scrape.php";
|
||||
shell_exec("tmux respawnp -t${tmux_session}:4.1 ' \
|
||||
$_php $ircscraper efnet false false true'"
|
||||
$_php $ircscraper true'"
|
||||
);
|
||||
}
|
||||
} else if ($scrape_efnet == 1) {
|
||||
$DIR = dirname(__FILE__);
|
||||
$ircscraper = $DIR . "/../lib/IRCScraper/scrape.php";
|
||||
shell_exec("tmux respawnp -t${tmux_session}:4.1 ' \
|
||||
$_php $ircscraper efnet false false true'"
|
||||
$_php $ircscraper true'"
|
||||
);
|
||||
//Check to see if the pane is dead, if so respawn it.
|
||||
if (shell_exec("tmux list-panes -t${tmux_session}:4 | grep ^1 | grep -c dead") == 1) {
|
||||
$DIR = dirname(__FILE__);
|
||||
$ircscraper = $DIR . "/../lib/IRCScraper/scrape.php";
|
||||
shell_exec("tmux respawnp -t${tmux_session}:4.1 ' \
|
||||
$_php $ircscraper efnet false false true'"
|
||||
$_php $ircscraper true'"
|
||||
);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user