some small fixes and improved backend.xml

git-svn-id: http://yolanda.mister-muffin.de/svn@299 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2008-04-15 08:15:55 +00:00
parent 1b07db81de
commit e1a42e7e94
4 changed files with 27 additions and 34 deletions

View file

@ -2,29 +2,34 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<strings>
<!-- database settings -->
<string id="database">mysql</string>
<string id="database_host">localhost</string>
<string id="database_name">yolanda</string>
<string id="database_username">yolanda</string>
<string id="database_password"><!-- put password here --></string>
<string id="page_locale_default">en-us</string>
<string id="page_xslt_default">xhtml.xsl</string>
<string id="path_root">http://localhost/</string>
<string id="url_root">http://localhost/</string>
<string id="path_root">/var/www/yolanda/</string>
<!-- general page settings -->
<string id="page_locale">en-us</string>
<string id="page_xslt">xhtml.xsl</string>
<string id="page_results_pagesize">10</string>
<string id="page_tag_lenght_min">3</string>
<string id="page_tag_count">20</string>
<string id="page_openid">true</string>
<!--<string id="page_bittorrent">false</string>-->
<string id="page_cookie_name">sid</string>
<!-- settings for video uploads -->
<string id="video_height_max">720</string><!-- in pixels -->
<string id="video_height_min">240</string>
<string id="video_width_max">1080</string>
<string id="video_width_min">320</string>
<string id="video_filesize_max">204800</string><!-- in bytes -->
<string id="video_filesize_min">512</string>
<string id="video_audio_bitrate">64</string>
</strings>
<ints>
<int id="page_results_pagesize">10</int>
<int id="page_tag_lenght_min">3</int>
<int id="page_tag_count">20</int>
<int id="video_height_max">720</int><!-- in pixels -->
<int id="video_height_min">240</int>
<int id="video_width_max">1080</int>
<int id="video_width_min">320</int>
<int id="video_filesize_max">204800</int><!-- in bytes -->
<int id="video_filesize_min">512</int>
</ints>
<bool>
<int id="page_openid">true</int>
<int id="page_bittorrent">true</int>
</bool>
</xsl:stylesheet>

View file

@ -42,7 +42,6 @@ sub get_page_array
}
$page->{'username'} = $userinfo->{'username'};
$page->{'stylesheet'} = $stylesheet;
$page->{'xmlns:dc'} = $xmlns_dc;
$page->{'xmlns:cc'} = $xmlns_cc;
$page->{'xmlns:rdf'} = $xmlns_rdf;

View file

@ -25,9 +25,7 @@ $dbpass = '';
$domain = 'http://localhost';
$session_name = 'sid';
$locale = "en-US";
# remove stylesheet attribute, this is an XSLT job
$stylesheet = "/style/default.css";
# WHAT THE FUCK
$xmlns_dc = "http://purl.org/dc/elements/1.1/";
$xmlns_cc = "http://web.resource.org/cc/";
$xmlns_rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";

View file

@ -9,15 +9,6 @@ $session = new CGI::Session;
@page = get_page_array(@userinfo);
# wtf is this shit ?
if($query->url_param('action') eq 'edit' and $query->url_param('id'))
{
$page->{'message'}->{'type'} = "information";
}
if($query->url_param('action') eq 'bookmark' and $query->url_param('id'))
{
$page->{'message'}->{'type'} = "information";
}
#check if id or title is passed
if($query->url_param('id'))
{