Changeset 1839
- Timestamp:
- 05/25/08 17:02:26 (8 months ago)
- Location:
- branches/acl
- Files:
-
- 46 modified
-
3rdparty/humanmsg/humanmsg.css (modified) (2 diffs)
-
3rdparty/humanmsg/humanmsg.js (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
system/admin/comments.php (modified) (3 diffs)
-
system/admin/comments_items.php (modified) (2 diffs)
-
system/admin/css/admin.css (modified) (7 diffs)
-
system/admin/dash_latestcomments.php (modified) (4 diffs)
-
system/admin/dash_latestentries.php (modified) (5 diffs)
-
system/admin/dash_logs.php (modified) (4 diffs)
-
system/admin/db_profiling.php (modified) (3 diffs)
-
system/admin/entries.php (modified) (2 diffs)
-
system/admin/entries_items.php (modified) (1 diff)
-
system/admin/footer.php (modified) (1 diff)
-
system/admin/groups.php (modified) (7 diffs)
-
system/admin/header.php (modified) (3 diffs)
-
system/admin/import.php (modified) (3 diffs)
-
system/admin/js/admin.js (modified) (11 diffs)
-
system/admin/login.php (modified) (3 diffs)
-
system/admin/logs.php (modified) (1 diff)
-
system/admin/options.php (modified) (3 diffs)
-
system/admin/plugins.php (modified) (3 diffs)
-
system/admin/publish.php (modified) (2 diffs)
-
system/admin/publish_tags.php (modified) (1 diff)
-
system/admin/tags.php (modified) (3 diffs)
-
system/admin/themes.php (modified) (7 diffs)
-
system/admin/user.php (modified) (13 diffs)
-
system/admin/users.php (modified) (3 diffs)
-
system/classes/adminhandler.php (modified) (3 diffs)
-
system/classes/atomhandler.php (modified) (5 diffs)
-
system/classes/databaseconnection.php (modified) (1 diff)
-
system/classes/error.php (modified) (2 diffs)
-
system/classes/inputfilter.php (modified) (2 diffs)
-
system/classes/installhandler.php (modified) (4 diffs)
-
system/classes/locale.php (modified) (4 diffs)
-
system/classes/post.php (modified) (4 diffs)
-
system/classes/tags.php (modified) (6 diffs)
-
system/classes/themes.php (modified) (3 diffs)
-
system/classes/url.php (modified) (1 diff)
-
system/classes/usergroup.php (modified) (1 diff)
-
system/classes/utils.php (modified) (4 diffs)
-
system/classes/version.php (modified) (1 diff)
-
system/schema/mysql/connection.php (modified) (1 diff)
-
system/schema/pgsql/connection.php (modified) (1 diff)
-
system/themes/k2/comments.php (modified) (1 diff)
-
system/themes/k2/entry.multiple.php (modified) (1 diff)
-
system/themes/k2/theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/acl/3rdparty/humanmsg/humanmsg.css
r1742 r1839 1 1 /* 2 HUMANIZED MESSAGES 1.0 2 HUMANIZED MESSAGES 1.0 - Habari Edition 3 3 idea - http://www.humanized.com/weblog/2006/09/11/monolog_boxes_and_transparent_messages 4 4 home - http://humanmsg.googlecode.com … … 10 10 11 11 .humanMsg { 12 font: normal 20px/50px Helvetica, Arial, Sans-Serif; 13 letter-spacing: -1px; 12 font: normal 12px Helvetica, Arial, Sans-Serif; 14 13 position: fixed; 15 top: 130px;16 left: 25%;17 width: 50%;14 top: 40px; 15 left: 10px; 16 width: 30%; 18 17 color: white; 19 text-align: center;20 z-index: 100000;18 text-align: left; 19 z-index: 900; 21 20 display: none; 21 padding: 0px; 22 22 } 23 23 24 .humanMsg .round { 25 border-left: solid 2px white; 26 border-right: solid 2px white; 27 font-size: 1px; height: 2px; 24 .humanMsg .imsgs .msg { 25 padding: 10px; 26 background-color: black; 27 -webkit-border-radius: 5px; 28 -moz-border-radius: 5px; 29 -webkit-box-shadow: 0px 1px 5px #333; 30 margin-bottom: 5px; 28 31 } 29 32 30 33 .humanMsg p { 31 padding: .3em;32 34 display: inline; 33 35 } 34 36 37 .humanMsg p a { 38 color: #19a5d1; 39 } 40 35 41 .humanMsg .imsgs .msg { 36 margin-bottom: 5px;37 background-color: black;38 42 display: none; 39 43 opacity: 0; 40 44 } 41 42 45 43 46 #humanMsgLog { -
branches/acl/3rdparty/humanmsg/humanmsg.js
r1742 r1839 42 42 // Inject message 43 43 $('#'+humanMsg.msgID).show(); 44 $('<div class="msg" ><div class="round" id="msgid_"' + humanMsg.msgcount + '></div><p>' + msg + '</p><div class="round"></div></div>')44 $('<div class="msg" id="msgid_' + humanMsg.msgcount + '"><p>' + msg + '</p></div>') 45 45 .appendTo('#'+humanMsg.msgID+' .imsgs') 46 46 .show().animate({ opacity: humanMsg.msgOpacity}, 200, function() { -
branches/acl/index.php
r1742 r1839 129 129 if ( !defined( 'DEBUG' ) ) define( 'DEBUG', false ); 130 130 131 // Set the locale.132 if ( isset($locale) ) {133 Locale::set( $locale );134 }135 136 131 // Make sure we have a DSN string and database credentials. 137 132 // $db_connection is an array with necessary informations to connect to the database. … … 167 162 /* Habari is installed and we established a connection with the database */ 168 163 164 // Set the locale from database 165 if ( @ Options::get('locale') ) { 166 Locale::set( Options::get('locale') ); 167 } 168 169 169 // Verify if the database has to be upgraded. 170 170 if ( Version::requires_upgrade() ) { -
branches/acl/system/admin/comments.php
r1792 r1839 2 2 3 3 <div class="container navigator"> 4 <span class="older pct10"><a href="#" onclick="timeline.skipLoupeLeft();return false">« Older</a></span>5 <span class="currentposition pct15 minor"> 0 of 0</span>6 <span class="search pct50"><input type="search" placeholder=" Type and wait to search for any comment component" autosave="habaricontent" results="10" value="<?php echo $search_args ?>"></span>4 <span class="older pct10"><a href="#" onclick="timeline.skipLoupeLeft();return false">« <?php _e('Older'); ?></a></span> 5 <span class="currentposition pct15 minor"><?php _e('0 of 0'); ?></span> 6 <span class="search pct50"><input type="search" placeholder="<?php _e('Type and wait to search for any comment component'); ?>" autosave="habaricontent" results="10" value="<?php echo $search_args ?>"></span> 7 7 <span class="nothing pct15"> </span> 8 <span class="newer pct10"><a href="#" onclick="timeline.skipLoupeRight();return false"> Newer»</a></span>8 <span class="newer pct10"><a href="#" onclick="timeline.skipLoupeRight();return false"><?php _e('Newer'); ?> »</a></span> 9 9 10 10 <div class="timeline"> … … 38 38 <div class="item controls"> 39 39 <span class="checkboxandselected pct25"> 40 <input type="checkbox"> </input>41 <span class="selectedtext minor none"> None selected</span>40 <input type="checkbox"> 41 <span class="selectedtext minor none"><?php _e('None selected'); ?></span> 42 42 </span> 43 43 <span class="buttons"> 44 <input type="submit" name="do_delete" value=" Delete" class="deletebutton"></input>45 <input type="submit" name="do_spam" value=" Spam" class="spambutton"></input>46 <input type="submit" name="do_unapprove" value=" Unapprove" class="spambutton"></input>47 <input type="submit" name="do_approve" value=" Approve" class="approvebutton"></input>44 <input type="submit" name="do_delete" value="<?php _e('Delete'); ?>" class="deletebutton"> 45 <input type="submit" name="do_spam" value="<?php _e('Spam'); ?>" class="spambutton"> 46 <input type="submit" name="do_unapprove" value="<?php _e('Unapprove'); ?>" class="spambutton"> 47 <input type="submit" name="do_approve" value="<?php _e('Approve'); ?>" class="approvebutton"> 48 48 </span> 49 49 </div> … … 61 61 <div class="item controls"> 62 62 <span class="checkboxandselected pct25"> 63 <input type="checkbox"> </input>64 <span class="selectedtext minor none"> None selected</span>63 <input type="checkbox"> 64 <span class="selectedtext minor none"><?php _e('None selected'); ?></span> 65 65 </span> 66 66 <span class="buttons"> 67 <input type="submit" name="do_delete" value=" Delete" class="deletebutton"></input>68 <input type="submit" name="do_spam" value=" Spam" class="spambutton"></input>69 <input type="submit" name="do_unapprove" value=" Unapprove" class="spambutton"></input>70 <input type="submit" name="do_approve" value=" Approve" class="approvebutton"></input>67 <input type="submit" name="do_delete" value="<?php _e('Delete'); ?>" class="deletebutton"> 68 <input type="submit" name="do_spam" value="<?php _e('Spam'); ?>" class="spambutton"> 69 <input type="submit" name="do_unapprove" value="<?php _e('Unapprove'); ?>" class="spambutton"> 70 <input type="submit" name="do_approve" value="<?php _e('Approve'); ?>" class="approvebutton"> 71 71 </span> 72 72 </div> -
branches/acl/system/admin/comments_items.php
r1792 r1839 4 4 <div class="head clear"> 5 5 <span class="checkboxandtitle pct25"> 6 <input type="checkbox" class="checkbox" name="comment_ids[<?php echo $comment->id; ?>]" id="comments_ids[<?php echo $comment->id; ?>]" value="1"> </input>6 <input type="checkbox" class="checkbox" name="comment_ids[<?php echo $comment->id; ?>]" id="comments_ids[<?php echo $comment->id; ?>]" value="1"> 7 7 <?php if($comment->url != ''): ?> 8 8 <a href="#" class="author"><?php echo $comment->name; ?></a> … … 11 11 <?php endif; ?> 12 12 </span> 13 <span class="entry pct30"><span class="dim"> in'</span><a href="<?php echo $comment->post->permalink ?>#comment-<?php echo $comment->id; ?>"><?php echo $comment->post->title; ?></a><span class="dim">'</span></span>14 <span class="time pct10"><a href="#"><span class="dim"> at</span> <?php echo date('H:i', strtotime($comment->date));?></a></span>15 <span class="date pct15"><a href="#"><span class="dim"> on</span> <?php echo date('M d, Y', strtotime($comment->date));?></a></span>13 <span class="entry pct30"><span class="dim"><?php _e('in'); ?> '</span><a href="<?php echo $comment->post->permalink ?>#comment-<?php echo $comment->id; ?>"><?php echo $comment->post->title; ?></a><span class="dim">'</span></span> 14 <span class="time pct10"><a href="#"><span class="dim"><?php _e('at'); ?></span> <?php echo date('H:i', strtotime($comment->date));?></a></span> 15 <span class="date pct15"><a href="#"><span class="dim"><?php _e('on'); ?></span> <?php echo date('M d, Y', strtotime($comment->date));?></a></span> 16 16 <ul class="dropbutton"> 17 <li><a href="#" onclick="itemManage.update(<?php echo $comment->id; ?>, 'delete');return false;"> Delete</a></li>18 <li><a href="#" onclick="itemManage.update(<?php echo $comment->id; ?>, 'spam');return false;"> Spam</a></li>19 <li><a href="#" onclick="itemManage.update(<?php echo $comment->id; ?>, 'approve');return false;"> Approve</a></li>20 <li><a href="#" onclick="itemManage.update(<?php echo $comment->id; ?>, 'unapprove');return false;"> Unapprove</a></li>21 <li><a href="#"> Edit</a></li>17 <li><a href="#" onclick="itemManage.update(<?php echo $comment->id; ?>, 'delete');return false;"><?php _e('Delete'); ?></a></li> 18 <li><a href="#" onclick="itemManage.update(<?php echo $comment->id; ?>, 'spam');return false;"><?php _e('Spam'); ?></a></li> 19 <li><a href="#" onclick="itemManage.update(<?php echo $comment->id; ?>, 'approve');return false;"><?php _e('Approve'); ?></a></li> 20 <li><a href="#" onclick="itemManage.update(<?php echo $comment->id; ?>, 'unapprove');return false;"><?php _e('Unapprove'); ?></a></li> 21 <li><a href="#"><?php _e('Edit'); ?></a></li> 22 22 </ul> 23 23 </div> -
branches/acl/system/admin/css/admin.css
r1792 r1839 318 318 } 319 319 320 .wideitems .item { 321 margin-left: -40px; 322 padding-left: 5px; 323 margin-right: -40px; 324 padding-right: 5px; 325 } 326 320 327 span.dim { 321 328 font-weight: normal; … … 517 524 518 525 .viewpost { 519 display: none; /* Temp */526 float: right; 520 527 } 521 528 … … 751 758 } 752 759 753 .dashboard .logsmodule {754 position: relative;755 float: left;756 width: 100%;757 height: 260px;758 }759 760 760 .dashboard .module .modulecore, 761 761 .dashboard .module .optionswindow { … … 961 961 962 962 963 /* LOGS */ 964 965 body.page-logs .time, body.page-logs .user, body.page-logs .ip, body.page-logs .module, body.page-logs .severity { 966 admin white-space: nowrap; 967 overflow: hidden; 968 text-overflow: ellipsis; 969 } 970 971 body.page-logs .item select { 972 margin-right: 10px; 973 } 974 975 body.page-logs .item { 976 padding: 3px 0 3px 2px; 977 } 978 979 body.page-logs .item input[type=checkbox] { 980 margin-left: 10px; 981 } 982 983 984 /* OPTIONS */ 985 986 body.page-options .item { 987 padding: 1px; 988 border: none; 989 } 990 991 963 992 /* NAVIGATION */ 964 993 … … 975 1004 /* PLUGINS */ 976 1005 1006 .plugins .item { 1007 padding-left: 40px; 1008 padding-right: 40px; 1009 } 1010 1011 .plugins .item .dropbutton { 1012 right: 40px !important; 1013 } 1014 977 1015 .plugins .item:hover { 978 background: # eee;1016 background: #dfdfdf; 979 1017 } 980 1018 … … 987 1025 margin: 0; 988 1026 width: 70%; 1027 } 1028 1029 .plugins #pluginconfigure { 1030 clear: both; 989 1031 } 990 1032 … … 1485 1527 } 1486 1528 1529 1530 /* FOOTER */ 1531 1532 #footer { 1533 margin: 35px 0; 1534 text-align: center; 1535 } 1536 1537 #footer p { 1538 white-space: nowrap; 1539 padding: 7px 15px; 1540 background: #e3e3e3; 1541 -webkit-border-radius: 5px; 1542 -moz-border-radius: 5px; 1543 display: inline; 1544 } 1545 1546 #footer a, #footer span { 1547 font-size: 11px; 1548 color: #888; 1549 } 1550 1551 #footer a { 1552 font-weight: bold; 1553 color: #777; 1554 } 1555 1556 #footer .middot { 1557 padding: 0 5px; 1558 color: #aaa; 1559 } 1560 1561 1487 1562 /* OPACITY PERCENTAGES */ 1488 1563 .opa0 { opacity: 0; } -
branches/acl/system/admin/dash_latestcomments.php
r1742 r1839 2 2 3 3 <div class="modulecore"> 4 <h2> Latest Comments</h2>4 <h2><a href="<?php Site::out_url('admin'); ?>/comments"><?php _e('Latest Comments'); ?></a></h2> 5 5 6 6 <div class="handle"> </div> … … 36 36 37 37 <div class="optionswindow"> 38 <h2> Latest Comments</h2>38 <h2><?php _e('Latest Comments'); ?></h2> 39 39 40 40 <div class="handle"> </div> … … 42 42 <div class="optionscontent"> 43 43 <p> 44 <label for="dummy" class="pct30"> # of Entries</label>44 <label for="dummy" class="pct30"><?php _e('# of Entries'); ?></label> 45 45 <select class="pct55"> 46 46 <option>10</option> … … 49 49 50 50 <p class="buttons"> 51 <input type="submit" value=" Submit">51 <input type="submit" value="<?php _e('Submit'); ?>"> 52 52 </p> 53 53 </div> -
branches/acl/system/admin/dash_latestentries.php
r1792 r1839 2 2 3 3 <div class="modulecore"> 4 <h2> Latest Entries</h2>4 <h2><a href="<?php Site::out_url('admin'); ?>/entries?type=1"><?php _e('Latest Entries'); ?></a></h2> 5 5 6 6 <div class="handle"> </div> … … 11 11 <li class="item clear"> 12 12 <span class="date pct15 minor"><a href="<?php echo URL::get('display_entries_by_date', array('year' => date('Y', strtotime($post->pubdate)), 'month' => date('m', strtotime($post->pubdate)), 'day' => date('d', strtotime($post->pubdate)))); ?>" title="<?php printf(_t('Posted at %1$s'), date('g:m a \o\n F jS, Y', strtotime($post->pubdate))); ?>"><?php echo date('M j', strtotime($post->pubdate)); ?></a></span> 13 <span class="title pct75"><a href="<?php echo $post->permalink; ?>"><?php echo $post->title; ?></a> <a class="minor" href="<?php Site::out_url('habari'); ?>/admin/user/<?php echo $post->author->username; ?>"> by <?php echo $post->author->displayname ? $post->author->displayname : $post->author->username; ?></a></span>13 <span class="title pct75"><a href="<?php echo $post->permalink; ?>"><?php echo $post->title; ?></a> <a class="minor" href="<?php Site::out_url('habari'); ?>/admin/user/<?php echo $post->author->username; ?>"> <?php _e('by'); ?> <?php echo $post->author->displayname; ?></a></span> 14 14 <span class="comments pct10"><a href="<?php echo $post->permalink; ?>#comments"><?php echo $post->comments->approved->count; ?></a></span> 15 15 </li> … … 20 20 21 21 <div class="optionswindow"> 22 <h2> Latest Entries</h2>22 <h2><?php _e('Latest Entries'); ?></h2> 23 23 24 24 <div class="handle"> </div> … … 26 26 <div class="optionscontent"> 27 27 <p> 28 <label for="dummy" class="pct30"> # of Entries</label>28 <label for="dummy" class="pct30"><?php _e('# of Entries'); ?></label> 29 29 <select class="pct55"> 30 30 <option>10</option> … … 33 33 34 34 <p class="buttons"> 35 <input type="submit" value=" Submit">35 <input type="submit" value="<?php _e('Submit'); ?>"> 36 36 </p> 37 37 </div> -
branches/acl/system/admin/dash_logs.php
r1742 r1839 1 1 <div class="options"> </div> 2 2 <div class="modulecore"> 3 <h2> Activity Logs</h2>3 <h2><a href="<?php Site::out_url('admin'); ?>/logs"><?php _e('Activity Logs'); ?></a></h2> 4 4 <div class="handle"> </div> 5 5 <ul class="items"> 6 <?php foreach( eventlog::get( array( 'limit' => 10) ) as $log ) { ?>6 <?php foreach( eventlog::get( array( 'limit' => 8 ) ) as $log ) { ?> 7 7 <li class="item clear"> 8 <span class="date pct15 minor"><?php echo Format::nice_date( $log->timestamp, 'F j, Y' ); ?></span> 9 <span class="title pct15"><?php echo $log->type; ?></span> 10 <span class="pct70"><?php echo $log->message; ?></span> 8 <span class="date pct15 minor"><?php echo Format::nice_date( $log->timestamp, 'F j' ); ?></span> 9 <span class="message pct85 minor"><?php echo $log->message; ?></span> 11 10 </li> 12 11 <?php } ?> … … 14 13 </div> 15 14 <div class="optionswindow"> 16 <h2> Activity Logs</h2>15 <h2><?php _e('Activity Logs'); ?></h2> 17 16 18 17 <div class="handle"> </div> … … 20 19 <div class="optionscontent"> 21 20 <p> 22 <label for="dummy" class="pct30"> # of Log Entries</label>21 <label for="dummy" class="pct30"><?php _e('# of Log Entries'); ?></label> 23 22 <select class="pct55"> 24 23 <option>10</option> … … 27 26 28 27 <p class="buttons"> 29 <input type="submit" value=" Submit">28 <input type="submit" value="<?php _e('Submit'); ?>"> 30 29 </p> 31 30 </div> -
branches/acl/system/admin/db_profiling.php
r865 r1839 37 37 </style> 38 38 <div class="prof_container"> 39 <h1 class="prof_header"> DB Profiling</h1>39 <h1 class="prof_header"><?php _e('DB Profiling'); ?></h1> 40 40 <?php 41 41 $profiles= DB::get_profiles(); … … 45 45 <div> 46 46 <code class="prof_sql"><?php echo $profile->query_text;?></code> 47 <div class="prof_time"> Time to Execute:<strong><?php echo $profile->total_time;?></strong></div>47 <div class="prof_time"><?php _e('Time to Execute:'); ?> <strong><?php echo $profile->total_time;?></strong></div> 48 48 <?php if (! empty($profile->backtrace)) {?> 49 <pre style="text-align: left;"><strong> BACKTRACE:</strong><br><?php print_r($profile->backtrace);?></pre>49 <pre style="text-align: left;"><strong><?php _e('BACKTRACE:'); ?></strong><br><?php print_r($profile->backtrace);?></pre> 50 50 <?php }?> 51 51 </div> … … 54 54 } 55 55 ?> 56 <div class="prof_time_total"> Total Time Executing Queries:<?php echo $total_time_querying;?></div>56 <div class="prof_time_total"><?php _e('Total Time Executing Queries:'); ?> <?php echo $total_time_querying;?></div> 57 57 </div> 58 58 <?php -
branches/acl/system/admin/entries.php
r1792 r1839 3 3 4 4 <div class="container navigator"> 5 <span class="older pct10"><a href="#" onclick="timeline.skipLoupeLeft();return false">« Older</a></span>6 <span class="currentposition pct15 minor"> 0-0 of 0</span>7 <span class="search pct50"><input type="search" placeholder=" Type and wait to search for any entry component" autosave="habaricontent" results="10" value="<?php echo $search_args ?>"></span>5 <span class="older pct10"><a href="#" onclick="timeline.skipLoupeLeft();return false">« <?php _e('Older'); ?></a></span> 6 <span class="currentposition pct15 minor"><?php _e('0-0 of 0'); ?></span> 7 <span class="search pct50"><input type="search" placeholder="<?php _e('Type and wait to search for any entry component'); ?>" autosave="habaricontent" results="10" value="<?php echo $search_args ?>"></span> 8 8 <span class="nothing pct15"> </span> 9 <span class="newer pct10"><a href="#" onclick="timeline.skipLoupeRight();return false"> Newer»</a></span>9 <span class="newer pct10"><a href="#" onclick="timeline.skipLoupeRight();return false"><?php _e('Newer'); ?> »</a></span> 10 10 11 11 <div class="timeline"> … … 38 38 39 39 <div class="item controls"> 40 <input type="hidden" name="nonce" id="nonce" value="<?php echo $wsse['nonce']; ?>"> </input>41 <input type="hidden" name="timestamp" id="timestamp" value="<?php echo $wsse['timestamp']; ?>"> </input>42 <input type="hidden" name="PasswordDigest" id="PasswordDigest" value="<?php echo $wsse['digest']; ?>"> </input>40 <input type="hidden" name="nonce" id="nonce" value="<?php echo $wsse['nonce']; ?>"> 41 <input type="hidden" name="timestamp" id="timestamp" value="<?php echo $wsse['timestamp']; ?>"> 42 <input type="hidden" name="PasswordDigest" id="PasswordDigest" value="<?php echo $wsse['digest']; ?>"> 43 43 <span class="pct25"> 44 <input type="checkbox"> </input>45 <span class="selectedtext minor none"> None selected</span>44 <input type="checkbox"> 45 <span class="selectedtext minor none"><?php _e('None selected'); ?></span> 46 46 </span> 47 47 <select class="actiondropdown"> 48 <option value="1"> Delete</option>48 <option value="1"><?php _e('Delete'); ?></option> 49 49 </select> 50 <input type="button" value=" Submit" class="submitbutton">50 <input type="button" value="<?php _e('Submit'); ?>" class="submitbutton"> 51 51 </div> 52 52 -
branches/acl/system/admin/entries_items.php
