';
echo '
Shimmie Repair Console
';
// Load the config
- require_once __SHIMMIE_ROOT__."config.php"; // Load user/site specifics First
+ require_once __SHIMMIE_ROOT__."data/config/shimmie.conf.php"; // Load user/site specifics First
require_once __SHIMMIE_ROOT__."core/default_config.inc.php"; // Defaults for the rest.
if(
@@ -120,7 +120,7 @@ if(is_readable("config.php")) {
else {
echo "
Login
-
Enter the database DSN exactly as in config.php (ie, as originally installed) to access advanced recovery tools:
+
Enter the database DSN exactly as in shimmie.conf.php (ie, as originally installed) to access advanced recovery tools:
- ";
- }
-
- return $html;
- }
}
?>
diff --git a/themes/lite/style.css b/themes/lite/style.css
index 1560e7d0..fe519214 100644
--- a/themes/lite/style.css
+++ b/themes/lite/style.css
@@ -70,7 +70,7 @@ a.tab:hover, a.tab:active, .tab-selected {
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
-.highlighted {
+.lazy{
background:none repeat scroll 0 0 #CEDFF0;
padding:4px;
border:1px solid #C3D2E0;
diff --git a/themes/lite/themelet.class.php b/themes/lite/themelet.class.php
index 8afa7754..3633860b 100644
--- a/themes/lite/themelet.class.php
+++ b/themes/lite/themelet.class.php
@@ -6,28 +6,26 @@ class Themelet extends BaseThemelet {
*/
public function build_thumb_html(Image $image, $query=null) {
global $config;
- $i_id = int_escape($image->id);
- $h_view_link = make_link("post/view/$i_id", $query);
+ $i_id = (int) $image->id;
+ $h_view_link = make_link('post/view/'.$i_id, $query);
$h_thumb_link = $image->get_thumb_link();
$h_tip = html_escape($image->get_tooltip());
+ $h_tags = strtolower($image->get_tag_list());
+ $base = get_base_href();
// If file is flash or svg then sets thumbnail to max size.
- if($image->ext == 'swf' || $image->ext == 'svg') {
+ if($image->ext === 'swf' || $image->ext === 'svg'){
$tsize = get_thumbnail_size($config->get_int('thumb_width'), $config->get_int('thumb_height'));
}
- else {
+ else{
$tsize = get_thumbnail_size($image->width, $image->height);
}
- return "
-
- ";
+ return '
\n";
}
diff --git a/themes/lite/user.theme.php b/themes/lite/user.theme.php
index 7f6d6440..9aa476ab 100644
--- a/themes/lite/user.theme.php
+++ b/themes/lite/user.theme.php
@@ -95,47 +95,5 @@ class CustomUserPageTheme extends UserPageTheme {
$page->disable_left();
parent::display_user_page($duser, $stats);
}
-
- protected function build_options($duser) {
- global $database;
- global $config;
- global $user;
-
- $html = "";
- $html .= "
-
-
- ";
-
- if($user->is_admin()) {
- $i_user_id = int_escape($duser->id);
- $h_is_admin = $duser->is_admin() ? " checked" : "";
- $html .= "
-
".make_form(make_link("user_admin/set_more"))."
-
- Admin:
-
-
- ";
- }
-
- return $html;
- }
}
?>
diff --git a/themes/lite/view.theme.php b/themes/lite/view.theme.php
index 1d075041..f54d45b1 100644
--- a/themes/lite/view.theme.php
+++ b/themes/lite/view.theme.php
@@ -13,7 +13,7 @@ class CustomViewImageTheme extends ViewImageTheme {
$page->add_html_header("id}"))."\">");
$page->add_block(new Block("Navigation", $this->build_navigation($image), "left", 0));
$page->add_block(new Block("Statistics", $this->build_stats($image), "left", 15));
- $page->add_block(new Block(null, $this->build_info($image, $editor_parts), "main", 10));
+ $page->add_block(new Block(null, $this->build_info($image, $editor_parts), "main", 11));
$page->add_block(new Block(null, $this->build_pin($image), "main", 11));
}