Fixes for traffic, manage_button and SSL work

This commit is contained in:
Deon George
2012-10-22 23:24:28 +11:00
parent 59321a6877
commit 002c3b8f44
7 changed files with 42 additions and 11 deletions

View File

@@ -48,11 +48,14 @@ abstract class Model_Service_Plugin extends ORMOSB {
abstract public function password_value();
public function manage_button() {
if (! $this->service->status)
return FALSE;
static $k = '';
// If $k is already set, we've rendered this JS
if ($k)
return;
return TRUE;
$k = Random::char();
Session::instance()->set('manage_button',$k);
@@ -70,6 +73,8 @@ function() { $("form[id=id_"+t[0]+"_"+t[1]+"]").submit(); });
});
});'
));
return TRUE;
}
/**