summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-07-13 14:26:12 +0200
committerBjörn Geiger2011-07-13 14:26:12 +0200
commit76c08ae35fc9ef699b3d0eb2b00d1938ff9593c4 (patch)
tree6ee9fb03288a1e5dbea736ff46ba17cd5c49ecad /application
parentweitere Korrekturen (diff)
downloadpoolctrl-76c08ae35fc9ef699b3d0eb2b00d1938ff9593c4.tar.gz
poolctrl-76c08ae35fc9ef699b3d0eb2b00d1938ff9593c4.tar.xz
poolctrl-76c08ae35fc9ef699b3d0eb2b00d1938ff9593c4.zip
Gearman Test funktioniert nun
Diffstat (limited to 'application')
-rw-r--r--application/controllers/GearmanController.php9
-rw-r--r--application/views/scripts/gearman/index.phtml12
-rw-r--r--application/views/scripts/gearman/someping.phtml12
3 files changed, 18 insertions, 15 deletions
diff --git a/application/controllers/GearmanController.php b/application/controllers/GearmanController.php
index 06de6bb..b871207 100644
--- a/application/controllers/GearmanController.php
+++ b/application/controllers/GearmanController.php
@@ -9,8 +9,13 @@ class GearmanController extends Zend_Controller_Action
$this->gearmanClient = new GearmanClient();
$this->gearmanClient->addServer();
}
+
+ public function indexAction()
+ {
+
+ }
- public function indexAction()
+ public function somepingAction()
{
$ipString = '132.230.4.1; 132.230.4.2; 132.230.4.3; 132.230.4.4; 132.230.4.5; 132.230.4.6; 132.230.4.7; 132.230.4.8; 132.230.4.9; 132.230.4.10; 132.230.4.11; 132.230.4.12; 132.230.4.13; 132.230.4.14; 132.230.4.15; 132.230.4.16; 132.230.4.17; 132.230.4.18; 132.230.4.19; 132.230.4.20; 132.230.4.21; 132.230.4.22; 132.230.4.23; 132.230.4.24; 132.230.4.25; 132.230.4.26; 132.230.4.27; 132.230.4.28; 132.230.4.29; 132.230.4.30';
@@ -25,6 +30,4 @@ class GearmanController extends Zend_Controller_Action
}
$this->view->results = $results;
}
-
-
} \ No newline at end of file
diff --git a/application/views/scripts/gearman/index.phtml b/application/views/scripts/gearman/index.phtml
index 41460cf..e69de29 100644
--- a/application/views/scripts/gearman/index.phtml
+++ b/application/views/scripts/gearman/index.phtml
@@ -1,12 +0,0 @@
-<?php
-foreach($this->results as $k => $result) {
-?>
-<pre>
- <h3>Result <?php echo $k; ?>:</h3>
- <?php echo $result->rawoutput; ?><br />
- alive: <?php if($result->alive) echo 'yes'; else echo 'no'; ?><br />
- rc: <?php echo $result->rc; ?>
-</pre>
-<?php
-}
-?> \ No newline at end of file
diff --git a/application/views/scripts/gearman/someping.phtml b/application/views/scripts/gearman/someping.phtml
new file mode 100644
index 0000000..ce458c8
--- /dev/null
+++ b/application/views/scripts/gearman/someping.phtml
@@ -0,0 +1,12 @@
+<?php
+foreach($this->results as $k => $result) {
+?>
+<h3>Result <?php echo $k; ?>:</h3>
+<pre>
+ <?php echo $result->rawoutput; ?><br />
+ alive: <?php if($result->alive) echo 'yes'; else echo 'no'; ?><br />
+ returncode: <?php echo $result->rc; ?>
+</pre>
+<?php
+}
+?> \ No newline at end of file