Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added protocol-relative URLs for CDN #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Purged unnessecary whitespace
  • Loading branch information
Krister Berntsen committed Jan 20, 2015
commit a488562c06799cf5b4199cbb2aa560132535de57
24 changes: 12 additions & 12 deletions archive/_data.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- example file containing base tags -->

<game>
<game>
<title>Company Name</title>
<founding-date>September 1, 2010</founding-date>
<website>http://www.website.com/</website>
<based-in>Cityville, Metropolisland</based-in>

<press-contact>press-contact@company.com</press-contact>
<phone>+00 (1) 22 33 44 55 66</phone>
<address>
Expand All @@ -30,10 +30,10 @@
</social>
</socials>

<description>
<description>
We're games studio and we make games. We're also capable of editing XML files.
</description>

<histories>
<history>
<header>Early history</header>
Expand All @@ -44,7 +44,7 @@
<text>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sem dui, volutpat eu adipiscing sed, rutrum aliquam lacus. Proin sollicitudin consequat dolor id dignissim. Aliquam sem turpis, sagittis lobortis viverra eget, varius vitae nunc. Proin ac lacus porttitor dui sollicitudin elementum. Nulla ut hendrerit est. Fusce vitae arcu erat, vel molestie est. Proin et placerat justo. Proin placerat arcu massa, eu blandit leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam eu lorem sed massa lobortis hendrerit vitae vel odio. Maecenas eget pulvinar tortor. Nunc vitae nisl ac odio bibendum luctus ac a leo. Suspendisse auctor elit et velit sagittis vehicula. Maecenas faucibus blandit rutrum. Duis et sem nibh. Vestibulum placerat elit et dui rhoncus accumsan.</text>
</history>
</histories>

<trailers>
<trailer>
<name>This video is nice</name>
Expand All @@ -56,7 +56,7 @@
<vimeo>12536488</vimeo>
</trailer>
</trailers>

<awards>
<award>
<description>Winner in this highly relevant contest.</description>
Expand All @@ -75,7 +75,7 @@
<info>Award Ceremony, 4 December, 1991</info>
</award>
</awards>

<quotes>
<quote>
<description>This is a rather insignificant quote by a highly important person.</description>
Expand All @@ -102,20 +102,20 @@
<link>http://thispage.net/angrytube</link>
</quote>
</quotes>

<press-can-request-copy>TRUE</press-can-request-copy> <!-- can be true or false -->
<monetization-permission>monetize</monetization-permission> <!-- can be: false (no video allowed),
ask (permission on case-per-case basis),
non-commercial (no monetization allowed),
monetize (full permission) -->
monetize (full permission) -->
<additionals>
<additional>
<title>Company Link #1</title>
<description>This link is a link that might be useful. You can check it out at</description>
<link>http://somemusicsite.com/thislink</link>
</additional>
</additionals>

<credits>
<credit>
<person>John Doe</person>
Expand All @@ -132,7 +132,7 @@
<role>Music, Freelancer</role>
</credit>
</credits>

<contacts>
<contact>
<name>Inquiries</name>
Expand All @@ -151,4 +151,4 @@
<link>MyCompanyWebsite.com</link>
</contact>
</contacts>
</game>
</game>
18 changes: 9 additions & 9 deletions archive/_template/_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link>http://www.itunes.com/</link>
</platform>
</platforms>

<prices>
<price>
<currency>USD</currency>
Expand All @@ -33,7 +33,7 @@
<price>
<currency>CAD</currency>
<value>$1.99</value>
</price>
</price>
<price>
<currency>GBP</currency>
<value>£1.29</value>
Expand All @@ -43,7 +43,7 @@
<description>
Hello. This is a short compilation of facts about the game. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</description>

<history>
Since we're an indie developer, we want a history to our game. This paragraph will explain this history in short. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</history>
Expand All @@ -55,7 +55,7 @@
<feature>Make sure to stress that everything about this game is absolutely fabulous.</feature>
<feature>Something to wrap up this 5-point feature list with a nice ring to it.</feature>
</features>

<trailers>
<trailer>
<name>Trailer</name>
Expand All @@ -68,7 +68,7 @@
<vimeo>23571681</vimeo>
</trailer>
</trailers>

<awards>
<award>
<description>Winner in this highly relevant contest.</description>
Expand All @@ -87,7 +87,7 @@
<info>Award Ceremony, 4 December, 1991</info>
</award>
</awards>

<quotes>
<quote>
<description>This is a rather insignificant quote by a highly important person.</description>
Expand All @@ -114,7 +114,7 @@
<link>http://</link>
</quote>
</quotes>

<additionals>
<additional>
<title>Original Soundtrack</title>
Expand All @@ -127,7 +127,7 @@
<link>http://vlambeer.com/bloglink</link>
</additional>
</additionals>

<credits>
<credit>
<person>Rami Ismail</person>
Expand All @@ -152,4 +152,4 @@
<role>Music, Freelancer</role>
</credit>
</credits>
</game>
</game>
36 changes: 18 additions & 18 deletions archive/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$game = $_GET['p'];
$state = $_GET['s'];
$checksum = 0;

$todo = array(
"required" => array(
"data.xml" => array(
Expand Down Expand Up @@ -106,7 +106,7 @@
$todo = array();
} else {
$contentText = '<h2>Why am I seeing this page?</h2>
<p>The installation procedure is almost done, but you\'ll probably need another thirty to sixty minutes to fully complete installation. Don\'t worry - things aren\'t in much of a hurry, you can always close this tab now and return later.</p>
<p>The installation procedure is almost done, but you\'ll probably need another thirty to sixty minutes to fully complete installation. Don\'t worry - things aren\'t in much of a hurry, you can always close this tab now and return later.</p>
<p>If you are ready, you will need FTP &amp; XML-editing capabilities. Please complete the following steps to finish the installation.</p>';

if( file_exists('_data.xml') )
Expand All @@ -122,11 +122,11 @@
{
$start = strpos($line, '&lt;title&gt;') + 13;
$title = substr($line, $start, strlen("Company Name") );

if( ucwords(str_replace("_", " ", $title) ) != "Company Name" )
{
$todo['required']['data.xml']['done'] = True;
break;
break;
}
}
}
Expand All @@ -147,15 +147,15 @@
{
if( substr($file, -10) != "header.png" && substr($file, -8) != "logo.png" && substr($file, -8) != "icon.png" )
{
$found++;
$found++;
}
}

if( $found > 0 )
{
$todo['required']['images']['done'] = True;
}
}
}
}

if( file_exists('images/images.zip') )
Expand Down Expand Up @@ -191,16 +191,16 @@
$start = strpos($line, '&lt;analytics&gt;') + 17;
$end = strpos($line, '&lt;/analytics&gt;');
$analytics = substr($line, $start, $end - $start );

if( strlen($analytics) > 10 )
{
echo('<li style="color:green"><del>');
$found++;
break;
break;
}
}
}

if( $found == 0 )
{
$todo['additional']['analytics']['done'] = True;
Expand Down Expand Up @@ -240,7 +240,7 @@
$todo = array();
} else {
$contentText = '<h2>Why am I seeing this page?</h2>
<p>This game has an entry, but the relevant files have not been uploaded yet.</p>
<p>This game has an entry, but the relevant files have not been uploaded yet.</p>
<p>If you are the webmaster, please note that the appropriate files & directories have been generated for you. Take the following steps to create the press page:</p>';

if( file_exists('_data.xml') )
Expand All @@ -254,11 +254,11 @@
{
$start = strpos($line, '&lt;title&gt;') + 13;
$title = substr($line, $start, strlen(ucwords(str_replace("_", " ", $game) ) ) );

if( ucwords(str_replace("_", " ", $title) ) == ucwords(str_replace("_", " ", $game) ) )
{
$todo['required']['data.xml']['done'] = True;
break;
break;
}
}
}
Expand All @@ -278,15 +278,15 @@
{
if( substr($file, -10) != "header.png" && substr($file, -8) != "logo.png" && substr($file, -8) != "icon.png" )
{
$found++;
$found++;
}
}

if( $found > 0 )
{
$todo['required']['images']['done'] = True;
}
}
}
}

if( file_exists('images/images.zip') )
Expand Down Expand Up @@ -322,11 +322,11 @@
$start = strpos($line, '&lt;product&gt;') + 15;
$end = strpos($line, '&lt;/product&gt;');
$promoter = substr($line, $start, $end );

if( $promoter != 0 )
{
$todo['optional']['promoter']['done'] = True;
break;
break;
}
}
}
Expand Down
Loading