Пример #1
0
 public function updateAllTables($echoStatus = false)
 {
     $return = parent::updateAllTables();
     if ($echoStatus) {
         ksort($return);
         echo "<pre style=\"font-size:10px;padding:5px;overflow:auto;max-height:400px;\">";
         foreach ($return as $plugin => $status) {
             echo phynx_mb_str_pad($plugin, 20) . ": {$status}\n";
         }
         echo "</pre>";
     }
     $message = "<p style=\"padding:10px;font-size:20px;color:green;margin-bottom:40px;text-align:center;\">Ihre Datenbank wurde erfolgreich aktualisiert.</p>";
     $action = "userControl.doLogout();";
     $B = new Button("Benutzer abmelden", "./plugins/Installation/abmelden.png", "icon");
     $B->onclick($action);
     $html = $this->box($B, $action, "Jetzt normal<br />weiterarbeiten");
     echo "{$message}<div style=\"width:350px;margin:auto;padding-bottom:40px;\">" . $html . "</div>";
 }
Пример #2
0
 /**
  * Create fixed-size string
  * 
  * @param string $string
  * @param int $width
  * @param int $pad_type STR_PAD_RIGHT OR STR_PAD_LEFT
  * @deprecated since version 23.09.2012
  */
 public static function utf8_str_col($string, $width, $pad_string = " ", $pad_type = STR_PAD_RIGHT)
 {
     return phynx_mb_str_pad(mb_substr($string, 0, $width), $width, $pad_string, $pad_type, "UTF-8");
     /*preg_match_all("/./su", $string, $ar);
     		
     		$ar = array_slice($ar[0], 0, $width);
     		
     		switch($pad_type){
     			case STR_PAD_RIGHT:
     				while(count($ar) < $width)
     					$ar[] = $pad_string[0];
     			break;
     				
     			case STR_PAD_LEFT:
     				while(count($ar) < $width)
     					array_unshift($ar, $pad_string[0]);
     			break;
     		}
     		
     		return implode("", $ar);*/
 }