rudimentary makefile, example backend configuration file, message when
no plugin is detected git-svn-id: http://yolanda.mister-muffin.de/svn@296 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
a812b3d886
commit
64bc812fc0
11 changed files with 99 additions and 77 deletions
30
trunk/config/backend.xml
Normal file
30
trunk/config/backend.xml
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-16"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<strings>
|
||||
<string id="database">mysql</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>
|
||||
</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>
|
|
@ -142,10 +142,11 @@ sub output_page
|
|||
my $parser = XML::LibXML->new();
|
||||
my $xslt = XML::LibXSLT->new();
|
||||
|
||||
#let the XSLT param choose other stylesheets or default to xhtml.xsl
|
||||
# let the XSLT param choose other stylesheets or default to xhtml.xsl
|
||||
my $param_xslt = $query->param('xslt');
|
||||
$param_xslt =~ s/[^\w]//gi;
|
||||
|
||||
# "null" is a debuggin option, make it so that this doesn't show up in the final product
|
||||
if($param_xslt eq "null")
|
||||
{
|
||||
return $session->header(
|
||||
|
|
|
@ -25,7 +25,9 @@ $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#";
|
||||
|
|
30
trunk/makefile
Normal file
30
trunk/makefile
Normal file
|
@ -0,0 +1,30 @@
|
|||
INSTDIR=/usr/local
|
||||
|
||||
build: frontend backend
|
||||
echo "building"
|
||||
|
||||
backend: database
|
||||
# TODO: copy apache configuration
|
||||
|
||||
database:
|
||||
# TODO: database setup - use dialog to answer the questions
|
||||
# which database ? (suggested: mysql)
|
||||
# root pasword ? (for setup)
|
||||
# yolanda username ? (suggested: yolanda)
|
||||
# yolanda password ? (will generate random username if none is chosen)
|
||||
dialog --yesno "database stuff" 10 40
|
||||
|
||||
frontend: svg2png
|
||||
# TODO: figure out what should go in here
|
||||
|
||||
install: build
|
||||
-mkdir "${INSTDIR}/share/yolanda"
|
||||
-mkdir "${INSTDIR}/share/yolanda/www"
|
||||
|
||||
remove:
|
||||
rm -rf "${INSTDIR}/share/yolanda"
|
||||
# TODO: kill off database
|
||||
|
||||
svg2png:
|
||||
# TODO: figure out how imagemagick works
|
||||
|
|
@ -111,18 +111,6 @@ div.loginbox
|
|||
border-color: #555753;
|
||||
}
|
||||
|
||||
div.protip-embed
|
||||
{
|
||||
}
|
||||
|
||||
div#preview
|
||||
{
|
||||
}
|
||||
|
||||
div#preview form
|
||||
{
|
||||
}
|
||||
|
||||
div.result
|
||||
{
|
||||
}
|
||||
|
@ -133,47 +121,6 @@ div#preview
|
|||
border-color: #555753;
|
||||
}
|
||||
|
||||
div.searchbar
|
||||
{
|
||||
}
|
||||
|
||||
div.splashbox
|
||||
{
|
||||
}
|
||||
|
||||
div.tagcloud
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
form
|
||||
{
|
||||
}
|
||||
|
||||
form fieldset
|
||||
{
|
||||
}
|
||||
|
||||
form fieldset input[type="text"]
|
||||
{
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
}
|
||||
|
||||
img
|
||||
{
|
||||
}
|
||||
|
||||
img#logo
|
||||
{
|
||||
}
|
||||
|
||||
li
|
||||
{
|
||||
}
|
||||
|
||||
li#latestadditions
|
||||
{
|
||||
list-style-image: url(../../images/tango/16x16/actions/document-new.png)
|
||||
|
@ -213,10 +160,6 @@ ul
|
|||
{
|
||||
}
|
||||
|
||||
ul#account-actions
|
||||
{
|
||||
}
|
||||
|
||||
ul#footer,
|
||||
ul#header
|
||||
{
|
||||
|
|
|
@ -37,10 +37,15 @@ a
|
|||
|
||||
a.tag
|
||||
{
|
||||
margin-left: 0.25em;
|
||||
margin-right: 0.25em;
|
||||
margin-left: 0.25em;
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
|
||||
code
|
||||
{
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
div
|
||||
{
|
||||
border-style: solid;
|
||||
|
|
|
@ -94,6 +94,15 @@ div
|
|||
overflow: visible;
|
||||
}
|
||||
|
||||
div.pluginhelp
|
||||
{
|
||||
}
|
||||
|
||||
div.pluginhelp h3
|
||||
{
|
||||
clear: left;
|
||||
}
|
||||
|
||||
div.protip-embed
|
||||
{
|
||||
}
|
||||
|
@ -205,7 +214,12 @@ img
|
|||
|
||||
img#logo
|
||||
{
|
||||
float: left;
|
||||
float: left;
|
||||
}
|
||||
|
||||
img.icon-mediaplayer
|
||||
{
|
||||
float: left;
|
||||
}
|
||||
|
||||
li
|
||||
|
|
|
@ -38,7 +38,7 @@ if($userinfo->{'username'})
|
|||
|
||||
if($query->param('DC.Title')&&$query->param('DC.Subject')&&$query->param('DC.Description'))
|
||||
{
|
||||
$page->{'innerresults'} = [''];
|
||||
$page->{'results-listing'} = [''];
|
||||
|
||||
my @args = ();
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ $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";
|
||||
|
@ -51,8 +52,9 @@ if($query->url_param('id'))
|
|||
}
|
||||
else
|
||||
{
|
||||
#there is nothing we can do now - this video doesn't exist...
|
||||
# there is nothing we can do now - this video doesn't exist...
|
||||
print $query->redirect("/index.pl?error=error_no_video");
|
||||
# this is a typical 404 situation, why is there no 404 ?
|
||||
}
|
||||
}
|
||||
elsif($rowcount == 1)
|
||||
|
@ -152,7 +154,7 @@ if($query->url_param('id'))
|
|||
'rdf:resource' => "http://web.resource.org/cc/DerivativeWorks"
|
||||
}
|
||||
# ↑↑ dummy code because josch is too lazy for DOIN IT RITE ↑↑
|
||||
# sadly, i dunno how to add multiple tags
|
||||
# sadly, i dunno how to add multiple tags with the same name
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
<xsl:include href="./xhtml/header.xsl" />
|
||||
<xsl:include href="./xhtml/messagebox.xsl" />
|
||||
<xsl:include href="./xhtml/loginbox.xsl" />
|
||||
<xsl:include href="./xhtml/pluginhelp.xsl" />
|
||||
<xsl:include href="./xhtml/register.xsl" />
|
||||
<xsl:include href="./xhtml/results.xsl" />
|
||||
<xsl:include href="./xhtml/settings.xsl" />
|
||||
|
|
|
@ -361,18 +361,12 @@
|
|||
</xsl:attribute>
|
||||
|
||||
<div class="messagebox" id="error">
|
||||
<xsl:value-of select="$locale_strings[@id='error_no_ogg_plugin']" />
|
||||
<span class="message">
|
||||
<xsl:value-of select="$locale_strings[@id='error_no_ogg_plugin']" />
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div style="margin-right:22em;">
|
||||
<!--
|
||||
TODO: we need a plugin download area
|
||||
(has to contain download links for every system)
|
||||
-->
|
||||
<img src="/images/vlc.png"/>
|
||||
<img src="/images/mplayer.png"/>
|
||||
<img src="/images/totem.png"/>
|
||||
</div>
|
||||
<xsl:call-template name="pluginhelp" />
|
||||
|
||||
</object>
|
||||
|
||||
|
|
Loading…
Reference in a new issue