コード例 #1
0
 /**
  * Show a listing of all temperatures.
  */
 public function Index()
 {
     $if = new CInterceptionFilter();
     $access = $if->AdminOrForbidden();
     $next = t("The next days spotprice is released 16:00 from NordPool's ftp server. Here we show the setvalues per hour to avoid buying electricity when the price is high.");
     $get = t('Get current spotprice');
     $translate = t('Update translations');
     $this->views->SetTitle('Spotprice Controller')->AddInclude(__DIR__ . '/index.tpl.php', array('html' => $this->createTable(), 'isTemps' => $this->textfiles->getIsTemps(), 'tablespot' => $this->createSpot(), 'header' => null, 'todaysDate' => $this->todaysDate, 'todayArray' => $this->textfiles->getCurrentCommaValues(), 'tomorrowsDate' => $this->tomorrowsDate, 'tomorrowArray' => $this->textfiles->getTomCommaValues(), 'text' => $next, 'get' => $get, 'translate' => $translate));
 }
コード例 #2
0
 public function Passwordservice()
 {
     $if = new CInterceptionFilter();
     $access = $if->AdminOrForbidden();
     $acronym;
     $pass1;
     $pass2;
     $name;
     $email;
     $id;
     if (isset($_POST) && $_POST) {
         $acronym = $_POST['acronym'];
         $pass1 = $_POST['pass1'];
         $pass2 = $_POST['pass2'];
         $name = $_POST['name'];
         $email = $_POST['email'];
         $id = $_POST['id'];
     } else {
         echo 'no post<br />';
     }
     $this->user->UpdateMember($acronym, $pass1, $pass2, $name, $email, $id);
 }