admin interface 'incomplete' post upgrade,blog not displayin
Posted: Thu Mar 05, 2009 5:06 am
I apologize for the length of this post
As a favour, I agreed to help in upgrading a local political reps blogs which had been using ancient blogware to current versions after security on the old versions had been compromised and they had been taken offline by the server webmaster. This involved a serendipity install to be upgraded from 0.7 to 1.4.1 as well as a wordpress installation. Both are using the same (mysql)database.
I don't have any kind of root access to the server or to any apache logs, but I can ssh in as the owner of the files in the blogs etc
The wordpress upgrade proceeded smoothly and without problems
for the serendipity install I upgraded following instructions at s9y.org - the only glitch being that I misread the instruction about setting the version to the old version number in serendipity_config.local.inc.php, and I set it to the new version instead. So the upgrade didn't work until I'd carefully recopied all the new files into place and reset the the version to the old version, and then changed the permissions to world writeable on some files the upgrade page complained about. At this point I was able to proceed with completing the upgrade.But the main pane of the blog doesn't display except for the header and a link list. And the admin interface is missing many of controls I would be expecting from the documentation, in particular those relating to templates and plugins. (page source below)
The blog is a "Councillor Diary" which loads from diary.php, which contains some wrapper html and php boilerplate to display $blog_data. The copy of serendipity looks like it hasn't been much customized(a diff with the original tarred code package I found on the server follows)- and the main pane seems to have loaded from code in templates/default/layout.php.
I'm not familiar with php code, though I write python and C++, so I get some inkling of what the code is about: displaying elements of the blog according to various switches - like gui code.Anyway I read about how after the upgrade from s9y-0.7 to 0.8, the new procedure is to include such code in config.inc.php. After fixing the include filenames I did so with some limited results(the first few lines -wrapped in <div id="serendipity_banner"> do now display. - So perhaps I'm on the right track, but I don't really want to be forever hacking about on someone else's live web server)
The rest, a <table id="mainpane"> is still nowhere - I guess because bulletproof doesn't have an element of the name "mainpane". - Bulletproof is the template I inherited with the upgrade -I think because the old setup used 'default'
My first choice would simply be to keep the original code (mainpane and so on). so the page is as similar to the old layout as possible. But it seems like I need a "complete" admin interface to fix the installation - even if only to change to a template using "mainpane" as an id. Or would using some other id for the table make bulletproof use it. Am I barking up the wrong tree?
Or Would it be best to import the entries/db into a reinstallation of serendipity and recreate the blog .
Any suggestions would be much appreciated.
thankyou
John O'Driscoll
#########
page source generated for serendipity/admin
#######################
<html>
<head>
<!-- ADMIN-ENTRY TEMPLATE: index.tpl START -->
<title>Serendipity Administration Suite</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="http://www.socialistpartyaustralia.org/ ... _admin.css" />
<link rel="stylesheet" type="text/css" href="/council/serendipity/templates/default/admin/pluginmanager.css" />
<script type="text/javascript">
function spawn() {
if (self.Spawnextended) {
Spawnextended();
}
if (self.Spawnbody) {
Spawnbody();
}
if (self.Spawnnugget) {
Spawnnugget();
}
}
function SetCookie(name, value) {
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime() + (60*60*24*30*1000));
document.cookie = 'serendipity[' + name + ']='+escape(value) + ';expires=' + expire.toGMTString();
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}
</script>
</head>
<body id="serendipity_admin_page" onload="spawn()">
<table cellspacing="0" cellpadding="0" border="0" id="serendipityAdminFrame">
<tr>
<td colspan="2" id="serendipityAdminBanner">
<h1>Serendipity Administration Suite</h1>
<h2>Councillor blog</h2>
</td>
</tr>
<tr>
<td colspan="2" id="serendipityAdminInfopane">
<span>Logged in as steve (Standard editor)</span>
</td>
</tr>
<tr valign="top">
<td id="serendipitySideBar">
<ul class="serendipitySideBarMenu serendipitySideBarMenuMain">
<li class="serendipitySideBarMenuHead serendipitySideBarMenuMainLinks" style="display:none"></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuMainLinks serendipitySideBarMenuMainFrontpage"><a href="serendipity_admin.php">Frontpage</a></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuMainLinks serendipitySideBarMenuMainPersonal"><a href="serendipity_admin.php?serendipity[adminModule]=personal">Personal Settings</a></li>
<li class="serendipitySideBarMenuFoot serendipitySideBarMenuMainLinks" style="display:none"></li>
</ul>
<br class="serendipitySideBarMenuSpacer" />
<ul class="serendipitySideBarMenu serendipitySideBarMenuEntry">
<li class="serendipitySideBarMenuHead serendipitySideBarMenuEntryLinks">Entries</li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks"><a href="serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=new">New Entry</a></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks"><a href="serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=editSelect">Edit Entries</a></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks"><a href="serendipity_admin.php?serendipity[adminModule]=category&serendipity[adminAction]=view">Categories</a></li>
<li class="serendipitySideBarMenuFoot serendipitySideBarMenuEntryLinks" style="display:none"></li>
</ul>
<ul class="serendipitySideBarMenu serendipitySideBarMenuMedia">
<li class="serendipitySideBarMenuHead serendipitySideBarMenuMediaLinks">Media</li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuMediaLinks"><a href="serendipity_admin.php?serendipity[adminModule]=media&serendipity[adminAction]=addSelect">Add media</a></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuMediaLinks"><a href="serendipity_admin.php?serendipity[adminModule]=media">Media library</a></li>
<li class="serendipitySideBarMenuFoot serendipitySideBarMenuMediaLinks" style="display:none"></li>
</ul>
<br class="serendipitySideBarMenuSpacer" />
<ul class="serendipitySideBarMenu serendipitySideBarMenuLogout">
<li class="serendipitySideBarMenuHead serendipitySideBarMenuLogoutLinks" style="display:none"></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuLogoutLinks serendipitySideBarMenuLogoutWeblog"><a href="http://www.socialistpartyaustralia.org/ ... ity/">Back to Weblog</a></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuLogoutLinks serendipitySideBarMenuLogoutLogout"><a href="serendipity_admin.php?serendipity[adminModule]=logout">Logout</a></li>
<li class="serendipitySideBarMenuFoot serendipitySideBarMenuLogoutLinks" style="display:none"></li>
</ul>
</td>
<td class="serendipityAdminContent">
<div class="further_links">
<p class="further_links_head">Further Links</p>
<ul>
<li><a href="http://www.s9y.org/">Serendipity Homepage</a></li>
<li><a href="http://www.s9y.org/33.html">Serendipity Documentation</a></li>
<li><a href="http://blog.s9y.org/">Official Blog</a></li>
<li><a href="http://www.s9y.org/forums/">Forums</a></li>
<li><a href="http://php-blog.sf.net/">Spartacus</a></li>
<li><a href="javascript:bm=document.selection?document.selection.createRange().text:document.getSelection();void(newwin=open('http://www.socialistpartyaustralia.org/ ... [title]='+ escape(document.title) + '&serendipity[body]=' + escape(bm) +'&serendipity[url]=' + escape(location.href), 'new_log_entry','resizable=yes, scrollbars=yes, width=800, height=600, location=yes,status=yes')); newwin.focus();" onclick="alert('Bookmark this link and then use it on any page you want to blog about to quickly access your Serendipity Blog.'); return false;" title="Bookmark this link and then use it on any page you want to blog about to quickly access your Serendipity Blog.">Bookmarklet</a></li>
</ul>
<p class="further_links_foot" style="display: none"></p>
</div>
<h3 class="serendipityWelcomeBack">Welcome back, steve</h3>
</td>
</tr>
</table>
<div class="serendipityAdminFooterSpacer">
<br />
</div>
<div id="serendipityAdminFooter">
<span>Powered by Serendipity 1.4.1 and PHP 5.2.8</span>
</div>
</body>
<!-- ADMIN-ENTRY TEMPLATE: index.tpl END -->
</html>
**************************************************************
Diff of the original install against a virgin copy of serendipity(the tar.gz archive found with the installation
output from:(mysql user&passwd info has been edit out)
##############
$ diff -ur /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: archives
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: diary.php
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: .htaccess
diff -ur /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/lang/serendipity_lang_en.inc.php /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/lang/serendipity_lang_en.inc.php
--- /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/lang/serendipity_lang_en.inc.php 2009-02-16 14:00:19.000000000 +1100
+++ /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/lang/serendipity_lang_en.inc.php 2004-10-21 02:27:25.000000000 +1000
@@ -522,7 +522,7 @@
@define('CALENDAR_BOW_DESC', 'The day of the week that should be considered the beginning of the week. Default is Monday');
@define('SUPERUSER', 'Blog Administration');
@define('ALLOWS_YOU_BLAHBLAH', 'Provides a link in the sidebar to your blog administration');
-@define('CALENDAR', 'Entries');
+@define('CALENDAR', 'Calendar');
@define('SUPERUSER_OPEN_ADMIN', 'Open administration');
@define('SUPERUSER_OPEN_LOGIN', 'Open login screen');
@define('INVERT_SELECTIONS', 'Invert Selections');
diff -ur /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/serendipity_config.inc.php /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/serendipity_config.inc.php
--- /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/serendipity_config.inc.php 2009-02-16 14:00:19.000000000 +1100
+++ /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/serendipity_config.inc.php 2004-11-08 19:55:08.000000000 +1100
@@ -113,26 +113,12 @@
* Make sure that the file included is in the current directory and not any possible
* include path
*/
-// echo('1me');
if (file_exists($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php')) {
- //echo('2me'.$_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php');
- // include_once($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php');
- $serendipity['versionInstalled'] = '0.7';
- $serendipity['dbName'] = 'XXXXXXXXXpartyXXXXXXXXX';
- $serendipity['dbPrefix'] = 'serendipity_';
- $serendipity['dbHost'] = 'localhost';
- $serendipity['dbUser'] = 'XXXXXpartyXX';
- $serendipity['dbPass'] = 'XXXXXXXXX';
- $serendipity['dbType'] = 'mysql';
+ include_once($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php');
} elseif (file_exists($serendipity['serendipityPath'] . '/serendipity_config_local.inc.php')) {
-//echo('3me');
include_once($serendipity['serendipityPath'] . '/serendipity_config_local.inc.php');
-} elseif (file_exists(S9Y_INCLUDE_PATH . '/serendipity_config_local.inc.php')) {
-//echo('4me');
+} else {
include_once(S9Y_INCLUDE_PATH . '/serendipity_config_local.inc.php');
-}else{
-//echo('5me');
- include_once('/home/httpd/html/socialistpartyaustralia/council/serendipity/serendipity_config_local.inc.php');
}
/*
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: serendipity_config_local.inc.php
diff -ur /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/serendipity_functions.inc.php /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/serendipity_functions.inc.php
--- /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/serendipity_functions.inc.php 2009-02-16 14:00:18.000000000 +1100
+++ /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/serendipity_functions.inc.php 2004-11-04 20:32:16.000000000 +1100
@@ -1243,9 +1243,7 @@
echo implode(', ', $cats);
}
- echo ' ' . AT . ' <a href="' . $entryLink . '">' . date('H:i', $entry['timestamp']) . '</a></div>'. "\n";
-
- /*
+ echo ' ' . AT . ' <a href="' . $entryLink . '">' . date('H:i', $entry['timestamp']) . '</a>'. "\n";
if (serendipity_db_bool($entry['allow_comments']) || !isset($entry['allow_comments']) || $entry['comments'] > 0) {
if (!isset($serendipity['GET']['id'])) {
@@ -1283,12 +1281,9 @@
if (!empty($entry['add_footer'])) {
echo $entry['add_footer'];
}
- */
?>
- </div>
+ </div>
</div>
- <?php
- /*
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
@@ -1300,8 +1295,6 @@
dc:identifier="<?php echo serendipity_archiveURL($entry['id'], $entry['title'], 'baseURL'); ?>" />
</rdf:RDF>
-->
- */
- ?>
<?php
$eventData = array_merge(array('display_dat' => ''), $entry);
serendipity_plugin_api::hook_event('frontend_display:html:per_entry', $eventData);
@@ -1340,13 +1333,13 @@
if (!$serendipity['enablePopup']) {
$tbu = $serendipity['baseURL'] . 'comment.php?type=trackback&entry_id=' . (int)$entry['id'];
?>
- <!-- <div class="serendipity_comments">
+ <div class="serendipity_comments">
<br />
<a id="trackbacks"></a>
<div class="serendipity_commentsTitle"><?php echo TRACKBACKS; ?></div>
- <div class="serendipity_center"><a style="font-weight: normal" href="<?php echo $tbu; ?>" onclick="alert('<?php echo htmlentities(TRACKBACK_SPECIFIC_ON_CLICK) ?>'); return false;" title="<?php echo htmlentities(TRACKBACK_SPECIFIC_ON_CLICK) ?>"><?php echo TRACKBACK_SPECIFIC; ?></a></div><br />-->
+ <div class="serendipity_center"><a style="font-weight: normal" href="<?php echo $tbu; ?>" onclick="alert('<?php echo htmlentities(TRACKBACK_SPECIFIC_ON_CLICK) ?>'); return false;" title="<?php echo htmlentities(TRACKBACK_SPECIFIC_ON_CLICK) ?>"><?php echo TRACKBACK_SPECIFIC; ?></a></div><br />
<?php
- // serendipity_printTrackbacks(serendipity_fetchTrackbacks($entry['id']));
+ serendipity_printTrackbacks(serendipity_fetchTrackbacks($entry['id']));
?>
</div>
<?php } ?>
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: spamblock.log
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: uploads
As a favour, I agreed to help in upgrading a local political reps blogs which had been using ancient blogware to current versions after security on the old versions had been compromised and they had been taken offline by the server webmaster. This involved a serendipity install to be upgraded from 0.7 to 1.4.1 as well as a wordpress installation. Both are using the same (mysql)database.
I don't have any kind of root access to the server or to any apache logs, but I can ssh in as the owner of the files in the blogs etc
The wordpress upgrade proceeded smoothly and without problems
for the serendipity install I upgraded following instructions at s9y.org - the only glitch being that I misread the instruction about setting the version to the old version number in serendipity_config.local.inc.php, and I set it to the new version instead. So the upgrade didn't work until I'd carefully recopied all the new files into place and reset the the version to the old version, and then changed the permissions to world writeable on some files the upgrade page complained about. At this point I was able to proceed with completing the upgrade.But the main pane of the blog doesn't display except for the header and a link list. And the admin interface is missing many of controls I would be expecting from the documentation, in particular those relating to templates and plugins. (page source below)
The blog is a "Councillor Diary" which loads from diary.php, which contains some wrapper html and php boilerplate to display $blog_data. The copy of serendipity looks like it hasn't been much customized(a diff with the original tarred code package I found on the server follows)- and the main pane seems to have loaded from code in templates/default/layout.php.
I'm not familiar with php code, though I write python and C++, so I get some inkling of what the code is about: displaying elements of the blog according to various switches - like gui code.Anyway I read about how after the upgrade from s9y-0.7 to 0.8, the new procedure is to include such code in config.inc.php. After fixing the include filenames I did so with some limited results(the first few lines -wrapped in <div id="serendipity_banner"> do now display. - So perhaps I'm on the right track, but I don't really want to be forever hacking about on someone else's live web server)
The rest, a <table id="mainpane"> is still nowhere - I guess because bulletproof doesn't have an element of the name "mainpane". - Bulletproof is the template I inherited with the upgrade -I think because the old setup used 'default'
My first choice would simply be to keep the original code (mainpane and so on). so the page is as similar to the old layout as possible. But it seems like I need a "complete" admin interface to fix the installation - even if only to change to a template using "mainpane" as an id. Or would using some other id for the table make bulletproof use it. Am I barking up the wrong tree?
Or Would it be best to import the entries/db into a reinstallation of serendipity and recreate the blog .
Any suggestions would be much appreciated.
thankyou
John O'Driscoll
#########
page source generated for serendipity/admin
#######################
<html>
<head>
<!-- ADMIN-ENTRY TEMPLATE: index.tpl START -->
<title>Serendipity Administration Suite</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="http://www.socialistpartyaustralia.org/ ... _admin.css" />
<link rel="stylesheet" type="text/css" href="/council/serendipity/templates/default/admin/pluginmanager.css" />
<script type="text/javascript">
function spawn() {
if (self.Spawnextended) {
Spawnextended();
}
if (self.Spawnbody) {
Spawnbody();
}
if (self.Spawnnugget) {
Spawnnugget();
}
}
function SetCookie(name, value) {
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime() + (60*60*24*30*1000));
document.cookie = 'serendipity[' + name + ']='+escape(value) + ';expires=' + expire.toGMTString();
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}
</script>
</head>
<body id="serendipity_admin_page" onload="spawn()">
<table cellspacing="0" cellpadding="0" border="0" id="serendipityAdminFrame">
<tr>
<td colspan="2" id="serendipityAdminBanner">
<h1>Serendipity Administration Suite</h1>
<h2>Councillor blog</h2>
</td>
</tr>
<tr>
<td colspan="2" id="serendipityAdminInfopane">
<span>Logged in as steve (Standard editor)</span>
</td>
</tr>
<tr valign="top">
<td id="serendipitySideBar">
<ul class="serendipitySideBarMenu serendipitySideBarMenuMain">
<li class="serendipitySideBarMenuHead serendipitySideBarMenuMainLinks" style="display:none"></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuMainLinks serendipitySideBarMenuMainFrontpage"><a href="serendipity_admin.php">Frontpage</a></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuMainLinks serendipitySideBarMenuMainPersonal"><a href="serendipity_admin.php?serendipity[adminModule]=personal">Personal Settings</a></li>
<li class="serendipitySideBarMenuFoot serendipitySideBarMenuMainLinks" style="display:none"></li>
</ul>
<br class="serendipitySideBarMenuSpacer" />
<ul class="serendipitySideBarMenu serendipitySideBarMenuEntry">
<li class="serendipitySideBarMenuHead serendipitySideBarMenuEntryLinks">Entries</li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks"><a href="serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=new">New Entry</a></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks"><a href="serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=editSelect">Edit Entries</a></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuEntryLinks"><a href="serendipity_admin.php?serendipity[adminModule]=category&serendipity[adminAction]=view">Categories</a></li>
<li class="serendipitySideBarMenuFoot serendipitySideBarMenuEntryLinks" style="display:none"></li>
</ul>
<ul class="serendipitySideBarMenu serendipitySideBarMenuMedia">
<li class="serendipitySideBarMenuHead serendipitySideBarMenuMediaLinks">Media</li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuMediaLinks"><a href="serendipity_admin.php?serendipity[adminModule]=media&serendipity[adminAction]=addSelect">Add media</a></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuMediaLinks"><a href="serendipity_admin.php?serendipity[adminModule]=media">Media library</a></li>
<li class="serendipitySideBarMenuFoot serendipitySideBarMenuMediaLinks" style="display:none"></li>
</ul>
<br class="serendipitySideBarMenuSpacer" />
<ul class="serendipitySideBarMenu serendipitySideBarMenuLogout">
<li class="serendipitySideBarMenuHead serendipitySideBarMenuLogoutLinks" style="display:none"></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuLogoutLinks serendipitySideBarMenuLogoutWeblog"><a href="http://www.socialistpartyaustralia.org/ ... ity/">Back to Weblog</a></li>
<li class="serendipitySideBarMenuLink serendipitySideBarMenuLogoutLinks serendipitySideBarMenuLogoutLogout"><a href="serendipity_admin.php?serendipity[adminModule]=logout">Logout</a></li>
<li class="serendipitySideBarMenuFoot serendipitySideBarMenuLogoutLinks" style="display:none"></li>
</ul>
</td>
<td class="serendipityAdminContent">
<div class="further_links">
<p class="further_links_head">Further Links</p>
<ul>
<li><a href="http://www.s9y.org/">Serendipity Homepage</a></li>
<li><a href="http://www.s9y.org/33.html">Serendipity Documentation</a></li>
<li><a href="http://blog.s9y.org/">Official Blog</a></li>
<li><a href="http://www.s9y.org/forums/">Forums</a></li>
<li><a href="http://php-blog.sf.net/">Spartacus</a></li>
<li><a href="javascript:bm=document.selection?document.selection.createRange().text:document.getSelection();void(newwin=open('http://www.socialistpartyaustralia.org/ ... [title]='+ escape(document.title) + '&serendipity[body]=' + escape(bm) +'&serendipity[url]=' + escape(location.href), 'new_log_entry','resizable=yes, scrollbars=yes, width=800, height=600, location=yes,status=yes')); newwin.focus();" onclick="alert('Bookmark this link and then use it on any page you want to blog about to quickly access your Serendipity Blog.'); return false;" title="Bookmark this link and then use it on any page you want to blog about to quickly access your Serendipity Blog.">Bookmarklet</a></li>
</ul>
<p class="further_links_foot" style="display: none"></p>
</div>
<h3 class="serendipityWelcomeBack">Welcome back, steve</h3>
</td>
</tr>
</table>
<div class="serendipityAdminFooterSpacer">
<br />
</div>
<div id="serendipityAdminFooter">
<span>Powered by Serendipity 1.4.1 and PHP 5.2.8</span>
</div>
</body>
<!-- ADMIN-ENTRY TEMPLATE: index.tpl END -->
</html>
**************************************************************
Diff of the original install against a virgin copy of serendipity(the tar.gz archive found with the installation
output from:(mysql user&passwd info has been edit out)
##############
$ diff -ur /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: archives
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: diary.php
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: .htaccess
diff -ur /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/lang/serendipity_lang_en.inc.php /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/lang/serendipity_lang_en.inc.php
--- /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/lang/serendipity_lang_en.inc.php 2009-02-16 14:00:19.000000000 +1100
+++ /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/lang/serendipity_lang_en.inc.php 2004-10-21 02:27:25.000000000 +1000
@@ -522,7 +522,7 @@
@define('CALENDAR_BOW_DESC', 'The day of the week that should be considered the beginning of the week. Default is Monday');
@define('SUPERUSER', 'Blog Administration');
@define('ALLOWS_YOU_BLAHBLAH', 'Provides a link in the sidebar to your blog administration');
-@define('CALENDAR', 'Entries');
+@define('CALENDAR', 'Calendar');
@define('SUPERUSER_OPEN_ADMIN', 'Open administration');
@define('SUPERUSER_OPEN_LOGIN', 'Open login screen');
@define('INVERT_SELECTIONS', 'Invert Selections');
diff -ur /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/serendipity_config.inc.php /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/serendipity_config.inc.php
--- /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/serendipity_config.inc.php 2009-02-16 14:00:19.000000000 +1100
+++ /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/serendipity_config.inc.php 2004-11-08 19:55:08.000000000 +1100
@@ -113,26 +113,12 @@
* Make sure that the file included is in the current directory and not any possible
* include path
*/
-// echo('1me');
if (file_exists($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php')) {
- //echo('2me'.$_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php');
- // include_once($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php');
- $serendipity['versionInstalled'] = '0.7';
- $serendipity['dbName'] = 'XXXXXXXXXpartyXXXXXXXXX';
- $serendipity['dbPrefix'] = 'serendipity_';
- $serendipity['dbHost'] = 'localhost';
- $serendipity['dbUser'] = 'XXXXXpartyXX';
- $serendipity['dbPass'] = 'XXXXXXXXX';
- $serendipity['dbType'] = 'mysql';
+ include_once($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php');
} elseif (file_exists($serendipity['serendipityPath'] . '/serendipity_config_local.inc.php')) {
-//echo('3me');
include_once($serendipity['serendipityPath'] . '/serendipity_config_local.inc.php');
-} elseif (file_exists(S9Y_INCLUDE_PATH . '/serendipity_config_local.inc.php')) {
-//echo('4me');
+} else {
include_once(S9Y_INCLUDE_PATH . '/serendipity_config_local.inc.php');
-}else{
-//echo('5me');
- include_once('/home/httpd/html/socialistpartyaustralia/council/serendipity/serendipity_config_local.inc.php');
}
/*
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: serendipity_config_local.inc.php
diff -ur /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/serendipity_functions.inc.php /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/serendipity_functions.inc.php
--- /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity/serendipity_functions.inc.php 2009-02-16 14:00:18.000000000 +1100
+++ /home/johno/Desktop/socialistpartyaustralia/software_versions/serendipity-0.7_server_version/serendipity/serendipity_functions.inc.php 2004-11-04 20:32:16.000000000 +1100
@@ -1243,9 +1243,7 @@
echo implode(', ', $cats);
}
- echo ' ' . AT . ' <a href="' . $entryLink . '">' . date('H:i', $entry['timestamp']) . '</a></div>'. "\n";
-
- /*
+ echo ' ' . AT . ' <a href="' . $entryLink . '">' . date('H:i', $entry['timestamp']) . '</a>'. "\n";
if (serendipity_db_bool($entry['allow_comments']) || !isset($entry['allow_comments']) || $entry['comments'] > 0) {
if (!isset($serendipity['GET']['id'])) {
@@ -1283,12 +1281,9 @@
if (!empty($entry['add_footer'])) {
echo $entry['add_footer'];
}
- */
?>
- </div>
+ </div>
</div>
- <?php
- /*
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
@@ -1300,8 +1295,6 @@
dc:identifier="<?php echo serendipity_archiveURL($entry['id'], $entry['title'], 'baseURL'); ?>" />
</rdf:RDF>
-->
- */
- ?>
<?php
$eventData = array_merge(array('display_dat' => ''), $entry);
serendipity_plugin_api::hook_event('frontend_display:html:per_entry', $eventData);
@@ -1340,13 +1333,13 @@
if (!$serendipity['enablePopup']) {
$tbu = $serendipity['baseURL'] . 'comment.php?type=trackback&entry_id=' . (int)$entry['id'];
?>
- <!-- <div class="serendipity_comments">
+ <div class="serendipity_comments">
<br />
<a id="trackbacks"></a>
<div class="serendipity_commentsTitle"><?php echo TRACKBACKS; ?></div>
- <div class="serendipity_center"><a style="font-weight: normal" href="<?php echo $tbu; ?>" onclick="alert('<?php echo htmlentities(TRACKBACK_SPECIFIC_ON_CLICK) ?>'); return false;" title="<?php echo htmlentities(TRACKBACK_SPECIFIC_ON_CLICK) ?>"><?php echo TRACKBACK_SPECIFIC; ?></a></div><br />-->
+ <div class="serendipity_center"><a style="font-weight: normal" href="<?php echo $tbu; ?>" onclick="alert('<?php echo htmlentities(TRACKBACK_SPECIFIC_ON_CLICK) ?>'); return false;" title="<?php echo htmlentities(TRACKBACK_SPECIFIC_ON_CLICK) ?>"><?php echo TRACKBACK_SPECIFIC; ?></a></div><br />
<?php
- // serendipity_printTrackbacks(serendipity_fetchTrackbacks($entry['id']));
+ serendipity_printTrackbacks(serendipity_fetchTrackbacks($entry['id']));
?>
</div>
<?php } ?>
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: spamblock.log
Only in /home/johno/Desktop/socialistpartyaustralia/socialists_www__backup_pre/council/serendipity: uploads