now everything should be updated to the new project name

git-svn-id: http://yolanda.mister-muffin.de/svn@165 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2007-10-29 21:26:39 +00:00
parent bb1db00aea
commit ea19f658b9
13 changed files with 40 additions and 33 deletions

View file

@ -1,4 +1,4 @@
GNUtube - http://mister-muffin.de/proj Yolanda - http://mister-muffin.de/proj
======================================================= =======================================================
A video content management using Perl for the backend and XML and XSLT for the frontend. Video playback is provided by Fluendo's Cortado applet. A video content management using Perl for the backend and XML and XSLT for the frontend. Video playback is provided by Fluendo's Cortado applet.
@ -31,7 +31,7 @@ Important: The GNU java implementation does not seem to work with Cortado yet.
Usage Usage
===== =====
Launch the worker script (gnutube_daemon.pl). Launch the worker script (daemon.pl).
Help Help
==== ====

View file

@ -20,6 +20,10 @@ if($userinfo->{'username'})
#language #language
#cortado or plugin #cortado or plugin
} }
elsif($query->param('show') eq 'bookmarks')
{
$page->{'account'}->{'show'} = 'bookmarks';
}
elsif($query->param('show') eq 'uploads') elsif($query->param('show') eq 'uploads')
{ {
$page->{'account'}->{'show'} = 'uploads'; $page->{'account'}->{'show'} = 'uploads';

View file

@ -61,7 +61,7 @@ if($query->param('id'))
} }
#in both cases - do some slurp-eaze to the browser #in both cases - do some slurp-eaze to the browser
open(FILE, "<$gnutube_root/videos/".$query->param('id')); open(FILE, "<$root/videos/".$query->param('id'));
print <FILE>; print <FILE>;
close(FILE); close(FILE);
} }

View file

@ -5,7 +5,7 @@ require "include.pl";
sub fill_tagcloud sub fill_tagcloud
{ {
#connect to db #connect to db
my $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $dbuser, $dbpass) or die $dbh->errstr; my $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $dbuser, $dbpass);
#prepare query #prepare query
my $sth = $dbh->prepare(qq{select text, count from tagcloud }) or die $dbh->errstr; my $sth = $dbh->prepare(qq{select text, count from tagcloud }) or die $dbh->errstr;
@ -33,7 +33,7 @@ sub get_userinfo_from_sid
my ($sid) = @_; my ($sid) = @_;
#connect to db #connect to db
my $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $dbuser, $dbpass) or die $dbh->errstr; my $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $dbuser, $dbpass);
#prepare query #prepare query
my $sth = $dbh->prepare(qq{select id, username, locale, pagesize, cortado from users where sid = ?}) or die $dbh->errstr; my $sth = $dbh->prepare(qq{select id, username, locale, pagesize, cortado from users where sid = ?}) or die $dbh->errstr;
@ -79,7 +79,7 @@ sub get_page_array
sub fill_results sub fill_results
{ {
#connect to db #connect to db
my $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $dbuser, $dbpass) or die $dbh->errstr; my $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $dbuser, $dbpass);
#prepare query #prepare query
my $sth = $dbh->prepare($dbquery) or die $dbh->errstr; my $sth = $dbh->prepare($dbquery) or die $dbh->errstr;

View file

@ -15,10 +15,10 @@
sodipodi:version="0.32" sodipodi:version="0.32"
inkscape:version="0.45.1" inkscape:version="0.45.1"
version="1.0" version="1.0"
sodipodi:docbase="/var/www/gnutube/images" sodipodi:docbase="/var/www/yolanda/images"
sodipodi:docname="yolanda.svg" sodipodi:docname="yolanda.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape" inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/var/www/gnutube/images/yolanda-big.png" inkscape:export-filename="/var/www/yolanda/images/yolanda-big.png"
inkscape:export-xdpi="90" inkscape:export-xdpi="90"
inkscape:export-ydpi="90"> inkscape:export-ydpi="90">
<defs <defs

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -9,12 +9,12 @@ use LWPx::ParanoidAgent;
use Net::OpenID::Consumer; use Net::OpenID::Consumer;
# change this as you install it somewhere else # change this as you install it somewhere else
$gnutube_root = '/var/www/gnutube'; $root = '/var/www/yolanda';
use lib qw(/var/www/gnutube); use lib qw(/var/www/yolanda);
#set global variables #set global variables
$database = 'gnutube'; $database = 'yolanda';
$dbhost = 'localhost'; $dbhost = 'localhost';
$dbuser = 'root'; $dbuser = 'root';
$dbpass = ''; $dbpass = '';
@ -22,7 +22,7 @@ $domain = 'http://localhost';
$session_name = 'sid'; $session_name = 'sid';
$XMLDecl = qq{<?xml version="1.0" encoding="UTF-8" ?><?xml-stylesheet type="text/xsl" href="/xsl/xhtml.xsl" ?>}; $XMLDecl = qq{<?xml version="1.0" encoding="UTF-8" ?><?xml-stylesheet type="text/xsl" href="/xsl/xhtml.xsl" ?>};
$locale = "en-US"; $locale = "en-US";
$stylesheet = "/style/gnutube.css"; $stylesheet = "/style/default.css";
$xmlns_dc = "http://purl.org/dc/elements/1.1/"; $xmlns_dc = "http://purl.org/dc/elements/1.1/";
$xmlns_cc = "http://web.resource.org/cc/"; $xmlns_cc = "http://web.resource.org/cc/";
$xmlns_rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; $xmlns_rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";

View file

@ -39,9 +39,9 @@ $dbh->do(qq{insert into
$dbh->do(qq{create table $dbh->do(qq{create table
config config
( (
key varchar(255) not null, attribute varchar(255) not null,
value varchar(255) not null, value varchar(255) not null,
primary key (key) primary key (attribute)
) )
}) or die $dbh->errstr; }) or die $dbh->errstr;

View file

@ -20,9 +20,9 @@
<str id="logout">logout</str> <str id="logout">logout</str>
<!-- footer --> <!-- footer -->
<str id="gnutube_authors">&#169; 2007 GNUtube team</str> <str id="authors">&#169; 2007 Yolanda team</str>
<str id="gnutube_license">license</str> <str id="license">license</str>
<str id="gnutube_source_code">download source code</str> <str id="source_code">download source code</str>
<!-- front page --> <!-- front page -->
<str id="button_find">Find</str> <str id="button_find">Find</str>

View file

@ -19,9 +19,9 @@
<str id="page_login">/login.pl</str> <str id="page_login">/login.pl</str>
<str id="page_login-openid">/login.pl?action=openid</str> <str id="page_login-openid">/login.pl?action=openid</str>
<str id="page_logout">/login.pl?action=logout</str> <str id="page_logout">/login.pl?action=logout</str>
<str id="page_gnutube-authors">INSERT LINK TO GNUTUBE AUTHORS HERE</str> <str id="page_authors">INSERT LINK TO YOLANDA AUTHORS HERE</str>
<str id="page_gnutube-license">http://gplv3.fsf.org/agplv3-dd1.html</str> <str id="page_license">http://gplv3.fsf.org/agplv3-dd1.html</str>
<str id="page_gnutube-source-code">http://mister-muffin.de/proj/browser</str> <str id="page_source-code">http://mister-muffin.de/proj/browser</str>
<str id="page_register">/register.pl</str> <str id="page_register">/register.pl</str>
<str id="page_results">search.pl?query=</str> <str id="page_results">search.pl?query=</str>
<str id="page_upload">/upload.pl</str> <str id="page_upload">/upload.pl</str>

View file

@ -44,7 +44,7 @@ if($userinfo->{'id'})
#save uploaded file into temppath #save uploaded file into temppath
$upload_filehandle = $query->upload("file"); $upload_filehandle = $query->upload("file");
open(TEMPFILE, ">$gnutube_root/tmp/$id") or die "cannot open"; open(TEMPFILE, ">$root/tmp/$id") or die "cannot open";
while ( <$upload_filehandle> ) while ( <$upload_filehandle> )
{ {
print TEMPFILE; print TEMPFILE;

View file

@ -20,7 +20,7 @@
<xsl:include href="/xsl/xhtml/results.xsl"/> <xsl:include href="/xsl/xhtml/results.xsl"/>
<xsl:include href="/xsl/xhtml/video.xsl"/> <xsl:include href="/xsl/xhtml/video.xsl"/>
<xsl:variable name="site_strings" select="document('../site/gnutube.xml')//strings/str" /> <xsl:variable name="site_strings" select="document('../site/main.xml')//strings/str" />
<xsl:variable name="locale_strings" select="document(concat('../locale/',/page/@locale,'.xml'))//strings/str" /> <xsl:variable name="locale_strings" select="document(concat('../locale/',/page/@locale,'.xml'))//strings/str" />
<!-- this kills 99% of the processed XML... sorry Tim Bray.... --> <!-- this kills 99% of the processed XML... sorry Tim Bray.... -->
@ -180,23 +180,23 @@
<div class="footer"> <div class="footer">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_gnutube-authors']" /> <xsl:value-of select="$site_strings[@id='page_authors']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='gnutube_authors']" /> <xsl:value-of select="$locale_strings[@id='authors']" />
</a> </a>
<xsl:value-of select="$locale_strings[@id='separator']" /> <xsl:value-of select="$locale_strings[@id='separator']" />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_gnutube-license']" /> <xsl:value-of select="$site_strings[@id='page_license']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='gnutube_license']" /> <xsl:value-of select="$locale_strings[@id='license']" />
</a> </a>
<xsl:value-of select="$locale_strings[@id='separator']" /> <xsl:value-of select="$locale_strings[@id='separator']" />
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='page_gnutube-source-code']" /> <xsl:value-of select="$site_strings[@id='page_source-code']" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="$locale_strings[@id='gnutube_source_code']" /> <xsl:value-of select="$locale_strings[@id='source_code']" />
</a> </a>
</div> </div>
@ -208,7 +208,7 @@
<xsl:template name="frontpage"> <xsl:template name="frontpage">
<div class="logo-big"> <div class="logo-big">
<img src="/images/logo-big.png" alt="GNUtube logo (320x100)" /> <img src="/images/logo-big.png" alt="Yolanda logo (320x100)" />
</div> </div>
<div class="search"> <div class="search">
@ -257,7 +257,7 @@
<div class="logo-small-top"> <div class="logo-small-top">
<a href="/"> <a href="/">
<img src="/images/logo-small-top.png" alt="GNUtube logo top (160x25)" /> <img src="/images/logo-small-top.png" alt="Yolanda logo top (160x25)" />
</a> </a>
</div> </div>
@ -275,7 +275,7 @@
<div class="logo-small-bottom"> <div class="logo-small-bottom">
<a href="/"> <a href="/">
<img src="/images/logo-small-bottom.png" alt="GNUtube logo top (160x25)" /> <img src="/images/logo-small-bottom.png" alt="Yolanda logo top (160x25)" />
</a> </a>
</div> </div>
@ -541,6 +541,9 @@
<xsl:when test="//account/@show='settings'"> <xsl:when test="//account/@show='settings'">
settings settings
</xsl:when> </xsl:when>
<xsl:when test="//account/@show='bookmarks'">
bookmarks
</xsl:when>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>

View file

@ -17,7 +17,7 @@
omit-xml-declaration="no" omit-xml-declaration="no"
/> />
<xsl:variable name="site_strings" select="document('../site/gnutube.xml')//strings" /> <xsl:variable name="site_strings" select="document('../site/main.xml')//strings" />
<xsl:variable name="locale_strings" select="document(concat('../locale/',/page/@locale,'.xml'))//strings" /> <xsl:variable name="locale_strings" select="document(concat('../locale/',/page/@locale,'.xml'))//strings" />
<xsl:template match="/"> <xsl:template match="/">
@ -55,4 +55,4 @@
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>