Procházet zdrojové kódy

WIP on more config page edits.

Fix a bad path for svg on login screen.

Set umask on install
Andy Baugh před 5 roky
rodič
revize
ec81b97e07

+ 1 - 0
bin/install

@@ -1,5 +1,6 @@
 #!/usr/bin/env php
 <?php
+umask(007);
 $user_info = posix_getpwuid(posix_geteuid());
 $wd = realpath( dirname( __FILE__ ) . "/../" );
 

+ 1 - 1
templates/default/admin/login.inc

@@ -147,7 +147,7 @@
           </table>
         </div>
         <div>
-          <img id="logo" src="../../img/icon/tCMS.svg" style="float:left" /><span style="font-family:courier;font-size:2rem;">CMS Login</span>
+          <img id="logo" src="../../themed/default/img/icon/tCMS.svg" style="float:left" /><span style="font-family:courier;font-size:2rem;">CMS Login</span>
         </div>
         <div id="spacer" style="clear: both;"><br /></div>
         <form method="POST" action="index.php">

+ 5 - 3
templates/default/admin/settings.inc

@@ -72,13 +72,15 @@
 <hr />
 <form id="userConfig" method="post" action="index.php">
     <input type="hidden" name="conf_change_type" value="users" />
-    <table>
     <?php
         $conf  = $conf_obj->get('users');
         $model = $conf_obj->get_config_model('users');
         $line = '';
         foreach ( $conf as $user => $data ) {
-            $line .= "<tr><td colspan=2><em>Manage user '$user'</em></td></tr>";
+            $line .= "<table class='manageUserEntry'><tr><td><em>Manage user '$user'</em></td>";
+            $line .= "<td style='text-align: right;'><label for='delete_$user'>Delete user?</label>";
+            $line .= "<input id='delete_$user' type='checkbox' />";
+            $line .= "</td></tr>";
             foreach ( $model as $key => $item ) {
                 $line .= '<tr><td><label for="' . $key . '">' . $item['label'] . '</label></td>';
                 $val = "";
@@ -89,10 +91,10 @@
                 }
                 $line .= '<td><input class="cooltext" name="' . $key . '" id="' . $key . '" type="' . $item['field_type'] . '" placeholder="' . $item['placeholder'] . '" value="' . $val . '" /></td></tr>';
             }
+            $line .= '</table>';
         }
         echo "$line\n";
     ?>
-    </table>
     <br />
     <input type="submit" class="coolbutton" value="Commit Changes" />
 </form>

+ 4 - 0
themed/default/css/screen.css

@@ -282,3 +282,7 @@ p.posteditortitle {
    display: block;
   }
 }
+.manageUserEntry {
+    border: .25rem dashed black;
+    padding: .5rem;
+}