Beispiel #1
0
 public function setUp()
 {
     $this->api = new Api();
     $this->api->setup(Settings::_('xero'));
     $this->api->sandbox(true);
     $this->api->testing = true;
 }
 public function infodirtoHTML($dir)
 {
     $w = File::a2r($dir);
     $ret = "";
     //		$ret .=	"<input type='submit' id='multiselectbutton' value='".Settings::_("adminpanel","multiselect")."'>";
     /// Folder name
     if (strlen($w) > 1 && $this->isfile) {
         $ret .= "<form class='niceform pure-form' action='?a=Mov' method='post'>\r\n\t\t\t\t\t<input type='hidden' name='move' value='rename'>\r\n\t\t\t\t\t<input type='hidden' name='pathFrom' value=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t\t<input type='text' name='pathTo' style='max-width:100%; white-space: normal;' value=\"" . htmlentities(basename($w), ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t\t<input type='submit' class='pure-button pure-button-primary' value='" . Settings::_("adminpanel", "rename") . "'>\r\n\t\t\t\t</form>";
     } else {
         $ret .= "<form class='niceform pure-form' action='?a=Upl' method='post'>\r\n\t\t\t\t\t\t<input type='hidden' name='path' value=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t\t\t<input id='foldername' name='newdir' style='max-width:100%;' type='text' value='" . Settings::_("adminpanel", "new") . "'>\r\n\t\t\t\t\t\t<input type='submit' class='pure-button pure-button-primary' value='" . Settings::_("adminpanel", "create") . "'>\r\n\t\t\t\t\t</form>";
         /// Upload Images form
         /*$ret .= "<div id='files'></div>";
         		$w=File::a2r(CurrentUser::$path);
         		$ret .= "<form class='dropzone' id=\"".htmlentities($w, ENT_QUOTES ,'UTF-8')."\" 
         			action='?a=Upl' method='POST' enctype='multipart/form-data'>
         			<input type='hidden' name='path' value=\"".htmlentities($w, ENT_QUOTES ,'UTF-8')."\">
         			<input type='hidden' name='inherit' value='1' />
         			<input type='file' name='images[]' multiple >
         			<button>Upload</button>
         			<div>".Settings::_("adminpanel","upload")."</div>
         			</form>";
         			*/
     }
     return $ret;
 }
Beispiel #3
0
 /**
  * Display BoardHeader on Website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo "<div class='header'>";
     /// Title
     echo "<h1>" . htmlentities($this->title, ENT_QUOTES, 'UTF-8') . "</h1>";
     echo "<span>";
     if (!Settings::$nodownload) {
         /// Zip button
         echo "<a href='?t=Zip&f={$this->path}' class='button'>" . Settings::_("boardheader", "download") . "</a>\n";
     }
     echo "</span>\n";
     echo "</div>\n";
 }
Beispiel #4
0
 public function infodirtoHTML($dir)
 {
     $w = File::a2r($dir);
     $ret = "";
     /// Folder name
     if (strlen($w) > 1) {
         $ret .= "<form class='rename' action='?a=Mov' method='post'>\n\t\t\t\t\t<input type='hidden' name='move' value='rename'>\n\t\t\t\t\t<input type='hidden' name='pathFrom' value=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\">\n\t\t\t\t<fieldset>\n\t\t\t\t\t<input type='text' name='pathTo' value=\"" . htmlentities(basename($w), ENT_QUOTES, 'UTF-8') . "\">\n\t\t\t\t\t<input type='submit' value='" . Settings::_("adminpanel", "rename") . "'>\n\t\t\t\t</fieldset>\n\t\t\t\t</form>";
     }
     if (!$this->isfile) {
         $ret .= "<form class='create' action='?a=Upl' method='post'>\n\t\t\t\t\t<fieldset>\n\t\t\t\t\t\t<input type='hidden' name='path' value=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\">\n\t\t\t\t\t\t<input id='foldername' name='newdir' type='text' value='" . Settings::_("adminpanel", "new") . "'>\n\t\t\t\t\t\t<input type='submit' value='" . Settings::_("adminpanel", "create") . "'>\n\t\t\t\t\t</fieldset>\n\t\t\t\t\t</form>";
         /// Upload Images form
         $ret .= "<div id='files'></div><form class='dropzone' id=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\" \n\t\t\t\taction='?a=Upl' method='POST' enctype='multipart/form-data'>\n\t\t\t\t<input type='hidden' name='path' value=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\">\n\t\t\t\t<input type='file' name='images[]' multiple >\n\t\t\t\t<button>Upload</button>\n\t\t\t\t<div>" . Settings::_("adminpanel", "upload") . "</div>\n\t\t\t\t</form>";
     }
     return $ret;
 }
Beispiel #5
0
 /**
  * Display AdminMenu on website
  * 
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     foreach ($this->options as $op => $val) {
         if ($_GET['a'] == $op) {
             $class = "menu_item selected";
         } else {
             $class = "menu_item";
         }
         echo "<div class='{$class}'>\n";
         echo "<div class='menu_title'>\n";
         echo "<a href='?t=Adm&a={$op}'>{$val}</a>";
         echo "</div>\n</div>\n";
     }
     echo "<div class='menu_item'>\n";
     echo "<div class='menu_title'>\n";
     echo "<a href='.'>" . Settings::_("adminmenu", "back") . "</a>";
     echo "</div>\n</div>\n";
 }
Beispiel #6
0
 /**
  * Display AdminMenu on website
  * 
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo "<ul class='menu_item {$this->class}'>\n";
     foreach ($this->options as $op => $val) {
         if (isset($_GET['a']) && $_GET['a'] == $op) {
             $class = "menu_item currentSelected";
         } else {
             $class = "menu_item";
         }
         echo "<li class='menu_title {$class}'>\n";
         echo "<a href='?t=Adm&a={$op}'>{$val}</a>";
         echo "\n</li>\n";
     }
     echo "<li class='menu_item'>\n";
     echo "<a href='.'>" . Settings::_("adminmenu", "back") . "</a>";
     echo "</li>\n";
     echo "</ul>\n";
 }
Beispiel #7
0
 /**
  * Display Login Page on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     if (Settings::$forcehttps && !$_SERVER["HTTPS"]) {
         header("HTTP/1.1 301 Moved Permanently");
         header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
         exit;
     } else {
         $this->header();
         echo "<div class='center'>\n";
         echo "<h1>" . Settings::_("login", "logintitle") . "</h1></br>";
         echo "<form method='post' action='?t=Log' class='niceform'>\n";
         echo "<fieldset><span>" . Settings::_("login", "login") . "</span>";
         echo "<div><input type='text' name='login'></div></fieldset>\n";
         echo "<fieldset><span>" . Settings::_("login", "pass") . "</span>\n";
         echo "<div><input type='password' name='password'></div></fieldset>\n";
         echo "<input type='submit' value='" . Settings::_("login", "submit") . "' > " . Settings::_("login", "or") . " <a class='inline' href='?t=Reg'>" . Settings::_("login", "register") . "</a> " . Settings::_("login", "or") . " <a class='inline' href='.'>" . Settings::_("login", "back") . "</a>";
         echo "</form>\n";
         echo "</div>\n";
     }
 }
Beispiel #8
0
 /**
  * Display Login Page on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     if (Settings::$forcehttps && !$_SERVER["HTTPS"]) {
         header("HTTP/1.1 301 Moved Permanently");
         header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
         exit;
     } else {
         $this->header();
         echo "<div class='header'>";
         echo "<h1>" . Settings::_("login", "logintitle") . "</h1>";
         echo "</div>";
         echo "<div class='center'>\n";
         echo "<form method='post' action='?t=Login' class='pure-form pure-form-aligned niceform'>\n";
         echo "<fieldset>\r\n                 <div class='pure-control-group'>\r\n                 <label>" . Settings::_("login", "login") . "</label>\r\n                    <input type='text' name='login' value='' placeholder='" . Settings::_("login", "login") . "'>\r\n                </div>\r\n                 <div class='pure-control-group'>\r\n                 <label>" . Settings::_("login", "pass") . "</label>\r\n                    <input type='password' name='password' value='' placeholder='" . Settings::_("login", "pass") . "'>\r\n                    </div>\r\n                 <div class='pure-control-group'>\r\n                    <input type='submit' class='pure-button pure-button-primary' value='" . Settings::_("login", "submit") . "'>\r\n                </div>\r\n            </fieldset>\r\n            </form>\n";
         if (!Settings::$noregister) {
             echo " <a class='pure-button button-success' href='?t=Reg'>" . Settings::_("login", "register") . "</a> " . Settings::_("login", "or");
         }
         echo " <a class='pure-button button-warning' href='.'>" . Settings::_("login", "back") . "</a>";
         echo "</fieldset></form>\n";
         echo "</div>\n";
     }
 }
Beispiel #9
0
 public function toHTML()
 {
     $groupaccounts = array();
     echo "<div class='leftcolumn'>";
     echo "<h1>" . Settings::_("jsaccounts", "accounts") . "</h1>";
     echo "<fieldset>";
     $r = new RegisterPage(false, true);
     $r->toHTML();
     echo "</fieldset>";
     foreach ($this->accounts as $acc) {
         echo "<div class='accountitem'>\n\t\t\t\t\t\t<div class='delete'>\n\t\t\t\t\t\t\t<form action='?t=Adm&a=ADe' method='post'>\n\t\t\t\t\t\t\t\t<input type='hidden' name='name' value='" . htmlentities($acc['login'], ENT_QUOTES, 'UTF-8') . "'>\n\t\t\t\t\t\t\t\t<input type='submit' value='x'>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</div>";
         echo "<div class='name'>" . $acc['login'] . "</div>";
         foreach ($acc['groups'] as $g) {
             $groupaccounts["{$g}"][] = $acc['login'];
             echo "<div class='inlinedel'><span class='rmgroup'>x</span><span class='groupname'>" . htmlentities($g, ENT_QUOTES, 'UTF-8') . "</span></div>";
         }
         echo "</div>";
     }
     echo "</div>";
     echo "<div class='rightcolumn'>";
     echo "<h1>" . Settings::_("jsaccounts", "groups") . "</h1>";
     echo "<div class='newgroup'>";
     echo "\n\t\t<form class='addgroup' method='post' action='?t=Adm&a=GC'>\n\t\t\t<fieldset>\n\t\t\t<span>" . Settings::_("jsaccounts", "groupname") . "</span>\n\t\t\t<div><input type='text' name='group' value='Group Name' /></div>\n\t\t\t</fieldset>\n\t\t\t<fieldset><input type='submit' value='" . Settings::_("jsaccounts", "addgroup") . "'></fieldset>\n\t\t\t</form>\n";
     echo "</div>";
     foreach ($this->groups as $g) {
         $gn = $g['name'];
         echo "<div class='groupitem'>\n\t\t\t\t\t\t<div class='delete'>\n\t\t\t\t\t\t\t<form action='?t=Adm&a=GDe' method='post'>\n\t\t\t\t\t\t\t\t<input type='hidden' name='name' value='{$gn}'>\n\t\t\t\t\t\t\t\t<input type='submit' value='x'>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</div>";
         echo "<div class='name'>" . $gn . "</div>";
         if (isset($groupaccounts["{$gn}"])) {
             foreach ($groupaccounts["{$gn}"] as $g) {
                 echo "<div class='inlinedel'><span class='rmacc'>x</span><span class='accname'>" . htmlentities($g, ENT_QUOTES, 'UTF-8') . "</span></div>";
             }
         }
         echo "</div>";
     }
     echo "</div>";
 }
Beispiel #10
0
 /**
  * Display Menubar on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo "<div id='menuright-header'>";
     //echo "<a class='pure-button button-xsmall' href='http://www.photoshow-gallery.com'>PhotoShow - © Thibaud Rohmer </a>";
     echo "<div class='buttongroup-vertical'>";
     if (isset(CurrentUser::$account)) {
         // User logged in
         echo "<a class='pure-button button-small' href='#'><i class='fa fa-user fa-lg' style='float:left;'></i> " . htmlentities(CurrentUser::$account->login, ENT_QUOTES, 'UTF-8') . " <div style='float:right;'><i class='fa fa-caret-down fa-lg'></i></div></a>";
         if (CurrentUser::$admin) {
             echo "<a class='pure-button button-small button-hidden hidden' href='?t=Adm'><i class='fa fa-cogs fa-lg' style='float:left;'></i> " . Settings::_("menubar", "admin") . "</a>";
         }
         echo "<a class='pure-button button-small button-hidden hidden' href='?t=Acc'><i class='fa fa-wrench fa-lg' style='float:left;'></i> Edit </a>";
         echo "<a class='pure-button button-small button-hidden hidden' href='?t=Logout'><i class='fa fa-sign-out fa-lg' style='float:left;'></i> " . Settings::_("menubar", "logout") . "</a>\n";
     } else {
         echo "<a class='pure-button button-small' href='#'><i class='fa fa-user fa-lg' style='float:left;'></i> Not logged in ! <div style='float:right;'><i class='fa fa-caret-down fa-lg'></i></div></a>";
         // User not logged in
         echo "<a class='pure-button button-small  button-hidden hidden' href='?t=Login'><i class='fa fa-sign-in fa-lg' style='float:left;'></i> " . Settings::_("menubar", "login") . "</a>";
         if (!Settings::$noregister) {
             echo "<a class='pure-button button-small  button-hidden hidden' href='?t=Reg'><i class='fa fa-smile-o fa-lg' style='float:left;'></i> " . Settings::_("menubar", "register") . "</a>\n";
         }
     }
     echo "</div>";
     echo "</div>\n";
 }
Beispiel #11
0
 public function toHTML()
 {
     $groupaccounts = array();
     echo "<div class='header'><h1>Groups</h1></div>";
     echo "<form class='pure-form pure-form-aligned' method='post' action='?t=Adm&a=GC'>\r\n\t\t\t<h2>" . Settings::_("jsaccounts", "addgroup") . "</h2>\r\n\t\t\t<div class='pure-control-group'>\r\n\t\t\t<label>Group name : </label><input type='text' name='group' placeholder='" . Settings::_("jsaccounts", "groupname") . "' />\r\n\t\t\t</div>\r\n\t\t\t<div class='pure-controls'>\r\n\t\t\t<input type='submit' class='pure-button button-success' value='" . Settings::_("jsaccounts", "addgroup") . "' />\r\n\t\t\t</div>\r\n\t\t\t</form>";
     echo "<form class='pure-form pure-form-aligned' method='post' action='?t=Adm&a=GEd'>";
     echo "<h2>" . Settings::_("jsaccounts", "groups") . "</h2>";
     foreach (Group::findAll() as $g) {
         $gn = $g['name'];
         $group = htmlentities($gn, ENT_QUOTES, 'UTF-8');
         echo "<div class='pure-g' style='border-bottom: 1px solid #ccc; padding-bottom: 15px; margin: 20px;'>";
         echo "<div class='pure-u-1-1 pure-u-md-1-3'>";
         echo "<h3><a href=\"?t=Adm&a=GDe&g=" . urlencode($gn) . "\" class='pure-button button-error button-small'><i class='fa fa-trash-o '></i></a> " . htmlentities($gn, ENT_QUOTES, 'UTF-8') . "</h3>";
         echo "</div>";
         echo "<div class='pure-u-1-1 pure-u-md-2-3'>";
         foreach (Account::findAll() as $acc) {
             $login = htmlentities($acc["login"], ENT_QUOTES, 'UTF-8');
             $checked = in_array($gn, $acc["groups"]) ? "checked" : "";
             echo "<div class='pure-controls'>";
             echo "<label><input type='checkbox' name=\"{$group}" . "[]\" value=\"{$login}\" {$checked} > {$login}</label>";
             echo "</div>";
         }
         echo "</div>";
         echo "</div>";
     }
     echo "<div class='pure-controls'><input type='submit' class='pure-button pure-button-primary'></div>";
     echo "</form>";
 }
Beispiel #12
0
 public function setUp()
 {
     $this->api = new Api();
     $this->api->setup(Settings::_('freeagent'));
     $this->api->sandbox(true);
 }
Beispiel #13
0
 /**
  * Display board on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     // Output header
     $this->header->toHTML();
     if (sizeof($this->boardfolders) > 0) {
         echo "<h2>" . Settings::_("board", "albums") . "</h2>";
         foreach ($this->boardfolders as $boardfolder) {
             $boardfolder->toHTML();
         }
     }
     if (sizeof($this->boardlines) > 0) {
         echo "<h2>" . Settings::_("board", "images") . "</h2>";
     }
     // Output grid
     foreach ($this->boardlines as $boardline) {
         $boardline->toHTML();
     }
 }
Beispiel #14
0
 /**
  * Display the rights on website, and let
  * the admin edit them.
  * 
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo "<div class='adminrights'>\n";
     echo "<h3>" . htmlentities($this->filename, ENT_QUOTES, 'UTF-8') . "</h3>\n";
     if ($this->public) {
         echo "<form action='?t=Pri&f={$this->webpath}' method='post'>\n";
         echo Settings::_("judge", "public");
         echo "<input type='submit' class='button blue' value='" . Settings::_("judge", "gopriv") . "' />";
         echo "</form>";
         echo "</div>";
         return;
     } else {
         echo "<form action='?t=Pub&f={$this->webpath}' method='post'>\n";
         echo Settings::_("judge", "priv");
         echo "<input type='submit' class='button blue' value='" . Settings::_("judge", "gopub") . "' />";
         echo "</form>";
     }
     echo "<form action='?t=Rig&f={$this->webpath}' method='post'>\n";
     echo "<h3>" . Settings::_("judge", "accounts") . "</h3>";
     foreach (Account::findAll() as $account) {
         if (in_array($account['login'], $this->users)) {
             $checked = "checked";
         } else {
             $checked = "";
         }
         echo "<label><input type='checkbox' value='" . $account['login'] . "' name='users[]' {$checked} >" . htmlentities($account['login'], ENT_QUOTES, 'UTF-8') . "</label>";
     }
     echo "<h3>" . Settings::_("judge", "groups") . "</h3>";
     foreach (Group::findAll() as $group) {
         if ($group['name'] == "root") {
             continue;
         }
         if (in_array($group['name'], $this->groups)) {
             $checked = "checked";
         } else {
             $checked = "";
         }
         echo "<label><input type='checkbox' value='" . $group['name'] . "' name='groups[]' {$checked} > " . htmlentities($group['name'], ENT_QUOTES, 'UTF-8') . " </label>";
     }
     echo "</br><input type='submit' class='button blue' value='" . Settings::_("judge", "set") . "'>\n";
     echo "</form>\n";
     echo "</div>\n";
 }
Beispiel #15
0
 /**
  * Display a form to edit account
  * 
  * 
  */
 public function toHTML()
 {
     $this->header();
     echo "<div class='header'>";
     echo "<h1>Account</h1>";
     echo "</div>";
     if (CurrentUser::$admin) {
         $r = new RegisterPage(false, true);
         $r->toHTML();
         echo "<form class='niceform pure-form' method='post' action='#'>";
         echo "<h2>" . Settings::_("account", "account") . "</h2>";
         echo "<label>" . Settings::_("account", "editing") . "</label><select name='login'>";
         foreach (Account::findall() as $a) {
             echo "<option value=\"" . addslashes($a['login']) . "\"";
             if ($this->login == $a['login']) {
                 echo " selected ";
             }
             echo ">" . $a['login'] . "</option>";
         }
         echo "</select>\n";
         echo "<input type='submit' class='pure-button pure-button-primary'>\n";
         echo "</form>";
     } else {
         echo Settings::_("account", "editing") . htmlentities($this->login, ENT_QUOTES, 'UTF-8');
     }
     echo "<form class='niceform pure-form pure-form-aligned' method='post' action='#'>\n";
     echo "<h2>" . Settings::_("account", "account") . "</h2>";
     /// Login
     echo "<div class='pure-control-group'>\r\n\t\t\t\t<label>" . Settings::_("account", "Login") . "</label>\r\n\t\t\t\t<input type='text' name='login' readonly='readonly' value=\"" . htmlentities($this->login, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t</div>";
     /// Name
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("account", "name") . "</label>\r\n\t\t\t\t\t<input type='text' name='name' value=\"" . htmlentities($this->name, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>";
     /// Email
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("account", "email") . "</label>\r\n\t\t\t\t\t<input type='text' name='email' value=\"" . htmlentities($this->email, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>";
     /// Language
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("settings", "language") . "</label>\r\n\t\t\t\t\t<select>\r\n\t\t\t\t";
     foreach (Settings::$ava_loc as $l) {
         $p = substr(htmlentities($l, ENT_QUOTES, 'UTF-8'), 0, -4);
         echo "<option value=\"" . addslashes($p) . "\"";
         if ($p == $this->language) {
             echo " selected ";
         }
         echo ">" . $p . "</option>";
     }
     echo "</select>\n";
     /// Login
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("account", "Key") . "</label>\r\n\t\t\t\t\t<input type='text' name='key' readonly='readonly' value=\"" . htmlentities($this->get_key(), ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>";
     /// Password
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("account", "password") . "</label>\r\n\t\t\t\t\t<input type='password' name='password' value=''>\r\n\t\t\t\t</div>";
     if (CurrentUser::$admin) {
         echo "<input type='hidden' value='plip' name='edit'>";
     } else {
         /// Old Pass
         echo "<div class='pure-control-group'>\r\n\t\t\t\t\t\t<label>" . Settings::_("account", "oldpass") . "</label>\r\n\t\t\t\t\t\t<input type='password' name='old_password' value=''>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</fieldset>\n";
     }
     echo "<div class='pure-controls'>\r\n\t\t\t<input type='submit' class='pure-button pure-button-primary' value='" . Settings::_("account", "submit") . "'/>\r\n\t\t\t</div>";
     echo "</form>\n";
     echo "</div>\n";
 }
Beispiel #16
0
 public function toHTML()
 {
     echo "<div class='infos_img'>";
     echo $this->thumb;
     echo $this->deleteform;
     echo "<div class='infos_title'>" . htmlentities($this->title, ENT_QUOTES, 'UTF-8') . "</div>";
     if (!Settings::$nodownload) {
         /// Zip button
         echo "<a href='{$this->dl}' class='floating-action'><i class='fa fa-arrow-down fa-large'></i></a>\n";
     }
     echo "</div>";
     if (CurrentUser::$admin && is_dir(CurrentUser::$path)) {
         /// Upload Images form
         echo "<h3>Upload</h3>";
         echo "<div id='files'></div>";
         echo "<form class='dropzone' id=\"" . htmlentities($this->w, ENT_QUOTES, 'UTF-8') . "\" \r\n\t\t\t\taction='?a=Upl' method='POST' enctype='multipart/form-data'>\r\n\t\t\t\t<input type='hidden' name='path' value=\"" . htmlentities($this->w, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t<input type='hidden' name='inherit' value='1' />\r\n\t\t\t\t<input type='file' name='images[]' multiple >\r\n\t\t\t\t<button>Upload</button>\r\n\t\t\t\t<div>" . Settings::_("adminpanel", "upload") . "</div>\r\n\t\t\t\t</form>";
     }
     if (CurrentUser::$admin || CurrentUser::$uploader) {
         $this->info->toHTML();
     }
     $this->exif->toHTML();
     echo "<div id='comments' class='box'>\n";
     if (!Settings::$nocomments) {
         $this->comments->toHTML();
     }
     echo "</div>\n";
     echo "<div id='share'>\n";
     echo "<span></span>";
     echo "<div>";
     // Outputting Facebook Like Button
     if (Settings::$like) {
         $rootURL = Settings::$site_address;
         $pageURL = $rootURL . "/?f=" . urlencode($this->w);
         echo '<iframe src="//www.facebook.com/plugins/like.php?href=' . $pageURL . '&amp;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>';
     }
     echo "</div>";
     echo "</span>\n";
     echo "</div>";
 }
Beispiel #17
0
 /**
  * Display the rights on website, and let
  * the admin edit them.
  * 
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo "<div class='adminrights'>\n";
     echo "<h3>Infos</h3>";
     echo $this->infos;
     echo "<h3>Access</h3>";
     if ($this->public) {
         echo "<div class='pure-g'><div class='pure-u-1-3'>";
         echo "<a href='?t=Pri{$this->webpath}'class='button-round button-success'><i class='fa fa-unlock'></i></a></div>";
         echo "<div class='pure-u-2-3'>" . Settings::_("judge", "public") . "</div></div>";
     } else {
         echo "<div class='pure-g'><div class='pure-u-1-3'>";
         echo "<a href='?t=Pub{$this->webpath}'class='button-round button-error'><i class='fa fa-lock'></i></a></div>";
         echo "<div class='pure-u-2-3'>" . Settings::_("judge", "priv") . "</div></div>";
     }
     echo "<form action='?t=Rig{$this->webpath}' method='post' class='pure-form pure-form-aligned'>";
     if (!$this->public) {
         echo "<h3>" . Settings::_("judge", "accounts") . "</h3>";
         echo "<ul>";
         foreach (Account::findAll() as $account) {
             if (in_array($account['login'], $this->users)) {
                 $checked = "checked";
             } else {
                 $checked = "";
             }
             echo "<label class='pure-checkbox'><input type='checkbox'  value='" . $account['login'] . "' name='users[]' {$checked} > " . htmlentities($account['login'], ENT_QUOTES, 'UTF-8') . "</label>";
         }
         echo "</ul>";
         echo "<h3>" . Settings::_("judge", "groups") . "</h3>";
         echo "<ul>";
         foreach (Group::findAll() as $group) {
             if ($group['name'] == "root") {
                 continue;
             }
             if (in_array($group['name'], $this->groups)) {
                 $checked = "checked";
             } else {
                 $checked = "";
             }
             echo "<label class='pure-checkbox'><input type='checkbox'   value='" . $group['name'] . "' name='groups[]' {$checked} > " . htmlentities($group['name'], ENT_QUOTES, 'UTF-8') . " </label>";
         }
         echo "<input type='submit' class='pure-button pure-button-primary button-small' value='" . Settings::_("judge", "set") . "'>\n";
         echo "</ul>";
         echo "<h3>Guest Tokens</h3>";
         if (!$this->multi) {
             // Token creation
             $tokens = GuestToken::find_for_path($this->file);
             if ($tokens && !empty($tokens)) {
                 echo "<ul>";
                 $i = 0;
                 foreach ($tokens as $token) {
                     $i++;
                     echo "<a class='pure-button button-small button-warning' href='" . GuestToken::get_url($token['key']) . "' >Guest Token {$i}</a><br />\n";
                 }
                 echo "</ul>";
             }
             echo "<ul><a href='?t=CTk{$this->webpath}' class='pure-button button-secondary button-small'>" . Settings::_("token", "createtoken") . "</a></ul>";
         }
     }
     echo "</form>\n";
     echo "</div>\n";
 }
Beispiel #18
0
<?php

$base = dirname(__DIR__);
require_once $base . '/vendor/autoload.php';
require_once $base . '/../settings.php';
$api = new Xero\Api();
$api->setup(Settings::_('xero'));
$api->sandbox(true);
$access = new Xero\Access($api);
$redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
if (isset($_GET['oauth_token'])) {
    var_dump($access->token($_GET['oauth_token'], array('redirect' => $redirect, 'verifier' => $_GET['oauth_verifier'])));
} else {
    $access->link($redirect);
}
Beispiel #19
0
 /**
  * Display upload page on website
  * 
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo "<h1>" . Settings::_("delete", "delete") . "</h1>";
     echo "<form action='?t=Adm&a=Del' method='post' enctype='multipart/form-data'>";
     echo "<fieldset><span>" . Settings::_("delete", "path") . "</span><div><select name='del'>";
     foreach ($this->files as $file) {
         if ($file == $this->selected) {
             $selected = "selected";
         } else {
             $selected = "";
         }
         echo "<option value='" . htmlentities($file, ENT_QUOTES, 'UTF-8') . "' {$selected}>" . htmlentities($file, ENT_QUOTES, 'UTF-8') . "</option>\n";
     }
     echo "</select></div></fieldset>\n";
     echo "<fieldset><input type='submit' value='" . Settings::_("delete", "submit") . "'/></fieldset>";
     echo "</form>";
 }
Beispiel #20
0
 /**
  * Display Register Page on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     if (Settings::$forcehttps && !$_SERVER["HTTPS"]) {
         header("HTTP/1.1 301 Moved Permanently");
         header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
         exit;
     } else {
         if (!$this->included) {
             echo "<div class='center'>\n";
             $this->header();
             if ($this->admin_account) {
                 echo "<h1>" . Settings::_("register", "mainacc") . "</h1>";
             } else {
                 echo "<h1>" . Settings::_("register", "register") . "</h1>";
             }
             echo "<form method='post' action='?t=Reg'>\n";
         } else {
             echo "<form class='adduser' method='post' action='?t=Adm&a=AAc'>\n";
         }
         echo "<span>" . Settings::_("register", "logintxt") . "</span>";
         echo "<fieldset><span>" . Settings::_("register", "login") . "</span>";
         echo "<div><input type='text' name='login'></div></fieldset>\n";
         echo "<span>" . Settings::_("register", "passtxt") . "</span>";
         echo "<fieldset><span>" . Settings::_("register", "pass") . "</span>\n";
         echo "<div><input type='password' name='password'></div></fieldset>\n";
         echo "<span>" . Settings::_("register", "veriftxt") . "</span>";
         echo "<fieldset><span>" . Settings::_("register", "verif") . "</span>\n";
         echo "<div><input type='password' name='verif'></div></fieldset>\n";
         echo "<input type='submit' value='" . Settings::_("register", "submit") . "'> " . Settings::_("register", "or") . " <a class='inline' href='.'>" . Settings::_("register", "back") . "</a>";
         echo "</form>\n";
         if (!$this->included) {
             echo "</div>\n";
         }
     }
 }
Beispiel #21
0
 /**
  * Display a form to edit account
  * 
  * 
  */
 public function toHTML()
 {
     $this->header();
     echo "<div class='panel'>\n";
     echo "<h1>" . Settings::_("account", "account") . "</h1>\n";
     echo Settings::_("account", "editing") . htmlentities($this->login, ENT_QUOTES, 'UTF-8');
     echo "<form method='post' action='#'>\n";
     echo "<input type='hidden' value='" . htmlentities($this->login, ENT_QUOTES, 'UTF-8') . "' name='login' />\n";
     echo "<fieldset><span>" . Settings::_("account", "name") . "</span><div><input type='text' value='" . htmlentities($this->name, ENT_QUOTES, 'UTF-8') . "' name='name' /></div></fieldset>\n";
     echo "<fieldset><span>" . Settings::_("account", "email") . " </span><div><input type='text' value='" . htmlentities($this->email, ENT_QUOTES, 'UTF-8') . "' name='email' /></div></fieldset>\n";
     echo "<fieldset><span>" . Settings::_("account", "password") . " </span><div><input type='password' value='' name='password' /></div></fieldset>\n";
     echo "<fieldset><span>" . Settings::_("account", "oldpass") . "</span><div><input type='password' value='' name='old_password' /></div></fieldset>\n";
     echo "<input type='submit' class='button blue' value='" . Settings::_("account", "submit") . "'>\n";
     echo Settings::_("account", "or") . " <a href='.'>" . Settings::_("account", "cancel") . "</a>";
     echo "</form>\n";
     echo "</div>\n";
 }
Beispiel #22
0
 /**
  * Display comments on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo '<h2>' . Settings::_("comments", "comments") . '</h2>';
     echo "<div class='display_comments'>";
     /// Display each comment
     foreach ($this->comments as $com) {
         $com->toHTML();
     }
     echo "</div>";
     echo "<form action='?t=Com&f=" . $this->webfile . "' id='comments_form' method='post'><fieldset class='transparent'>\n";
     if (isset(CurrentUser::$account)) {
         echo "<fieldset><input type='text' class='visible' name='login' id='login' value='" . htmlentities(CurrentUser::$account->login, ENT_QUOTES, 'UTF-8') . "' readonly></fieldset>\n";
     } else {
         echo "<fieldset><input type='text' class='visible' name='login' id='login' value='" . Settings::_("comments", "anonymous") . "'></fieldset>\n";
     }
     echo "<textarea name='content' id='content'></textarea>\n";
     echo "<input type='submit' value='" . Settings::_("comments", "submit") . "'></fieldset>\n";
     echo "</form>\n";
 }
Beispiel #23
0
    /**
     * Display page on the website
     *
     * @return void
     * @author Thibaud Rohmer
     */
    public function toHTML()
    {
        $this->header($this->header_content);
        echo "<body>";
        echo "<div id='container'>\n";
        $this->menubar->toHTML();
        echo "<div id='page'>\n";
        /// Start menu
        echo "<div id='menu' class='menu'>\n";
        $this->menu->toHTML();
        if (CurrentUser::$admin || CurrentUser::$uploader) {
            echo "<div class='bin'><img src='inc/bin.png'>" . Settings::_("bin", "delete") . "</div>";
        }
        echo "</div>\n";
        /// Stop menu
        echo "<div id='menu_hide'></div>";
        echo "<div class='center'>";
        /// Start Panel
        echo "<div class='{$this->panel_class}'>\n";
        $this->panel->toHTML();
        echo "</div>\n";
        /// Stop Panel
        /// Start ImagePanel
        echo "<div class='{$this->image_panel_class}'>\n";
        $this->image_panel->toHTML();
        echo "</div>\n";
        /// Stop ImagePanel
        echo "</div>\n";
        echo "<div id='infos_hide'></div>";
        echo "<div class='infos'>\n";
        $this->infos->toHTML();
        echo "</div>\n";
        echo "</div>\n";
        echo "</div>\n";
        if (Settings::$hide_menu) {
            echo '
		<script language="javascript" type="text/javascript">
		menu_hide();
		</script>
		';
        }
        if (Settings::$hide_infos) {
            echo '
		<script language="javascript" type="text/javascript">
		info_hide();
		</script>
		';
        }
        echo "</body>";
    }
Beispiel #24
0
 /**
  * Display Menubar on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo "<div id='menubar'>\n";
     echo "<div class='align_left'>\n";
     echo "<a href='.'>PhotoShow</a>\n";
     if (isset(CurrentUser::$account)) {
         // User logged in
         echo "<div class='menubar-button'>- " . Settings::_("menubar", "logged") . " <a href='?t=Acc'>" . htmlentities(CurrentUser::$account->login, ENT_QUOTES, 'UTF-8') . "</a></div>\n";
         echo "</div><div class='align_right'>\n";
         echo "<a href='?t=Log'>" . Settings::_("menubar", "logout") . "</a>\n";
         if (CurrentUser::$admin) {
             echo "<a href='?t=Adm'>" . Settings::_("menubar", "admin") . "</a>\n";
         }
     } else {
         // User not logged in
         echo "</div><div class='align_right'>\n";
         echo "<a class='login' href='?t=Log'>" . Settings::_("menubar", "login") . "</a>\n";
         if (!Settings::$noregister) {
             echo "<a class='register' href='?t=Reg'>" . Settings::_("menubar", "register") . "</a>\n";
         }
     }
     //echo "<a href='?a=rss'>RSS <img src='./inc/rss.png' height='11px'></a>\n";
     echo "</div>\n";
     echo "<span>" . Settings::_("menubar", "powered") . " <a href='http://www.photoshow-gallery.com'>PhotoShow</a> - © 2011 Thibaud Rohmer</span>";
     echo "</div>\n";
 }
Beispiel #25
0
 public function setUp()
 {
     $this->api = new Api();
     $this->api->setup(Settings::_('kashflow'));
 }
 /**
  * test set_lang
  * @test
  */
 public function test_set_lang()
 {
     Settings::set_lang("francais");
     $this->assertEquals(Settings::_("settings", "noregister"), "Bloquer les inscriptions");
 }
 /**
  * Display Register Page on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     if (Settings::$forcehttps && !$_SERVER["HTTPS"]) {
         header("HTTP/1.1 301 Moved Permanently");
         header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
         exit;
     } else {
         if (!$this->included) {
             $this->header();
             echo "<form method='post' action='?t=Reg' class='pure-form pure-form-aligned'>\n";
             echo "<div class='header'>";
             if ($this->admin_account) {
                 echo "<h1>" . Settings::_("register", "mainacc") . "</h1>";
             } else {
                 echo "<h1>" . Settings::_("register", "register") . "</h1>";
             }
             echo "</div>";
             echo "<div class='center'>\n";
         } else {
             echo "<form class='pure-form pure-form-aligned' method='post' action='?t=Adm&a=AAc'>\n";
         }
         echo "<fieldset>\r\n            <h2>" . Settings::_("account", "createaccount") . "</h2>\r\n                <div class='pure-control-group'>\r\n                    <label>" . Settings::_("register", "logintxt") . "</label>\r\n                    <input type='text' name='login' value=''>\r\n                </div>\r\n            ";
         /// Password
         echo "<div class='pure-control-group'>\r\n                    <label>" . Settings::_("register", "passtxt") . "</label>\r\n                    <input type='password' name='password' value=''>\r\n                </div>";
         /// Verif
         echo "<div class='pure-control-group'>\r\n                    <label>" . Settings::_("register", "veriftxt") . "</label>\r\n                    <input type='password' name='verif' value=''>\r\n                </div>";
         echo "<div class='pure-controls'><input class='pure-button button-success' type='submit' value='" . Settings::_("register", "submit") . "'></div>";
         echo "</fieldset></form>\n";
         if (!$this->included) {
             echo " <a class='pure-button button-warning' href='.'>" . Settings::_("register", "back") . "</a>";
         }
     }
 }
Beispiel #28
0
 /**
  * Display board on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     // Output header
     $this->header->toHTML();
     if (sizeof($this->boardfolders) > 0) {
         echo "<div class='section sectiondir'>";
         echo "<h2>" . Settings::_("board", "albums") . "</h2>";
         echo "<div class='pure-g'>";
         foreach ($this->boardfolders as $boardfolder) {
             $boardfolder->toHTML();
         }
         echo "</div>";
         echo "</div>";
     }
     $this->grid("Image");
     if (sizeof($this->boarditems) > 0) {
         echo "<div class='section sectionimg'>";
         echo "<h2>" . Settings::_("board", "images") . "</h2>";
         echo "<div class='pure-g line'>";
         foreach ($this->boarditems as $item) {
             $item->toHTML();
         }
         echo "</div>";
         echo "</div>";
     }
     $this->grid("Video");
     if (sizeof($this->boarditems) > 0) {
         echo "<div class='section sectionvid'>";
         echo "<h2>" . Settings::_("board", "videos") . "</h2>";
         echo "<div class='pure-g'>";
         // Output grid
         foreach ($this->boarditems as $item) {
             $item->toHTML();
         }
         echo "</div>";
         echo "</div>";
     }
 }
Beispiel #29
0
 /**
  * Display a list of existing tokens
  * 
  */
 public function toHTML()
 {
     if (!CurrentUser::$admin) {
         // Only admin can see the tokens
         return false;
     }
     echo "<div class='header'>";
     echo "<h1>" . Settings::_("token", "tokens") . "</h1>\n";
     echo "</div>";
     // We still want to display the title so the page is not empty
     if (!file_exists(CurrentUser::$tokens_file)) {
         return false;
     }
     echo "<ul>";
     echo "<table>";
     echo "<tbody>";
     foreach (self::findAll() as $t) {
         echo "<tr>";
         echo "<td>";
         echo "<form action='?t=Adm&a=DTk' method='post'>\n";
         echo "<input type='hidden' name='tokenkey' value='" . $t['key'] . "' />";
         echo "<input type='submit' class='pure-button button-error' value='" . Settings::_("token", "deletetoken") . "' />";
         echo "</form>";
         echo "</td>";
         echo "<td><a href='" . self::get_url($t['key']) . "' >" . $t['path'] . "</a></td>";
         echo "</tr>";
     }
     echo "</tbody>";
     echo "</table>";
     echo "</ul>";
     echo "</div>";
 }
Beispiel #30
0
 /**
  * Display settings page
  */
 public function toHTML()
 {
     echo "<div class='header'>";
     echo "<h1>Settings</h1>";
     echo "</div>";
     /// Site Title
     echo "<form class='niceform pure-form pure-form-aligned' action='?t=Adm&a=Set' method='post'>\n";
     echo "<h2>Global</h2>\r\n\t\t\t\t<div class='pure-control-group'>\r\n\t\t\t\t\t<label for='name'>" . Settings::_("settings", "title") . "</label>\r\n\t\t\t\t\t<input type='text' name='name' value=\"" . htmlentities(Settings::$name, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>";
     /// Site Address
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("settings", "site_address") . "</label>\r\n\t\t\t\t\t<input type='text' name='site_address' value=\"" . htmlentities(Settings::$site_address, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>";
     /// Language
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("settings", "language") . "</label>\r\n\t\t\t\t\t<select name='loc'>";
     foreach (Settings::$ava_loc as $l) {
         $p = htmlentities($l, ENT_QUOTES, 'UTF-8');
         echo "<option value=\"" . addslashes($p) . "\"";
         if ($p == Settings::$loc) {
             echo " selected ";
         }
         echo ">" . substr($p, 0, -4) . "</option>";
     }
     echo "</select>";
     echo "</div>";
     /// User Theme
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("settings", "user_theme") . "</label>\r\n\t\t\t\t\t<select name='user_theme'>";
     foreach (Settings::$ava_themes as $l) {
         $p = htmlentities($l, ENT_QUOTES, 'UTF-8');
         echo "<option value=\"" . addslashes($p) . "\"";
         if ($p == Settings::$user_theme) {
             echo " selected ";
         }
         echo ">{$p}</option>";
     }
     echo "</select>";
     echo "</div>";
     echo "<h2>Options</h2>";
     $options = array("noregister", "forcehttps", "nocomments", "nodownload", "reverse_menu", "l33t", "rss");
     foreach ($options as $val) {
         $c = Settings::${$val} ? "checked" : "";
         echo "<div class='pure-controls'><label><input type='checkbox' name='{$val}' {$c}> " . Settings::_("settings", $val) . "</label></div>\n";
     }
     /// Max Comments
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("settings", "numcomments") . "</label>\r\n\t\t\t\t\t<input type='text' name='max_comments' value=\"" . htmlentities(Settings::$max_comments, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>\n";
     /// Thumbs size
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("settings", "thumbs_size") . "</label>\r\n\t\t\t\t\t<input type='text' name='max_img_dir' value=\"" . htmlentities(Settings::$thumbs_size, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>\n";
     echo "<h2>Social Networks</h2>";
     /// Facebook Button
     $c = Settings::$like ? "checked" : "";
     echo "<div class='pure-controls'>\r\n\t\t\t\t<label><input type='checkbox' name='like' {$c}>" . Settings::_("settings", "fb") . "</label>\r\n\t\t\t</div>\n";
     /// Facebook App ID
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("settings", "facebook_appid") . "</label>\r\n\t\t\t\t\t<input type='text' name='fbappid' value=\"" . htmlentities(Settings::$fbappid, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>";
     echo "<h2>Video</h2>";
     /// Encode Video
     echo "<span>" . Settings::_("settings", "video_comment") . "</span>";
     echo "<div class='pure-controls'>";
     $c = Settings::$encode_video ? "checked" : "";
     echo "<label><input type='checkbox' name='encode_video' {$c}>Encode Video</label>\n";
     echo "</div>";
     /// FFmpeg Path
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("settings", "ffmpeg_path") . "</label>\r\n\t\t\t\t\t<input type='text' name='ffmpeg_path' value=\"" . htmlentities(Settings::$ffmpeg_path, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>\n";
     /// FFmpeg command line
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("settings", "ffmpeg_option") . "</label>\r\n\t\t\t\t\t<input type='text' name='ffmpeg_option' value=\"" . htmlentities(Settings::$ffmpeg_option, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>";
     echo "<div class='pure-controls'><input type='submit' class='pure-button pure-button-primary' value='" . Settings::_("settings", "submit") . "'/></div>\n";
     echo "</form>\n";
     echo "<div class='section'><h2>" . Settings::_("settings", "generate") . "</h2>";
     echo "<form class='niceform pure-form' action='?t=Adm&a=GAl' method='post'>\n";
     echo "<fieldset>\r\n\t\t\t\t\t<label>" . Settings::_("settings", "folder") . "</label>\r\n\t\t\t\t\t<select name='path'>";
     echo "<option value='.'>" . Settings::_("settings", "all") . "</option>";
     foreach ($this->folders as $f) {
         $p = htmlentities(File::a2r($f), ENT_QUOTES, 'UTF-8');
         echo "<option value=\"" . addslashes($p) . "\">" . basename($p) . "</option>";
     }
     echo "</select>";
     echo "<input type='submit' class='pure-button pure-button-primary' value='" . Settings::_("settings", "submit") . "'/>\n";
     echo "</fieldset>";
     echo "</form>";
     echo "</div>";
 }