FAQ
rasmus Sun, 15 Jan 2012 00:10:02 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=322308

Log:
Add a black SOPA bar to the rest of the site to join the blacked out front page

Changed paths:
U web/php/trunk/include/layout.inc

Modified: web/php/trunk/include/layout.inc
===================================================================
--- web/php/trunk/include/layout.inc 2012-01-15 00:08:25 UTC (rev 322307)
+++ web/php/trunk/include/layout.inc 2012-01-15 00:10:02 UTC (rev 322308)
@@ -199,6 +199,14 @@
}


+ $ts = time();
+ // Hardcode 1pm Jan.18 UTC to 1am Jan.19 UTC time window
+ if($ts>=1295355600 && $ts<1295398800) {
+ $sopa_bar = <<<EOBAR
+<div style="width:100%;height:50px;vertical-align:middle;text-align:center;background-color:#000;color:#ffffff; position:absolute;z-index:5555;top:8px;left:0px;background:#000000;"><p style="margin-top:15px;">Stop SOPA/PIPA <a href="http://americancensorship.org">[americancensorship.org]</a></p></div>
+EOBAR;
+ } else $sopa_bar = '';
+
print <<<END_HEADER
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -223,6 +231,7 @@
<body{$onload}>

<div id="headnav">
+ $sopa_bar
<a href="/" rel="home"><img src="{$_SERVER['STATIC_ROOT']}/images/php_snow_2008.gif"
alt="PHP" width="120" height="67" id="phplogo" /></a>
<div id="headmenu">

Search Discussions

  • Peter Cowburn at Jan 18, 2012 at 1:23 pm
    salathe Wed, 18 Jan 2012 13:23:10 +0000

    Revision: http://svn.php.net/viewvc?view=revision&revision=322445

    Log:
    fix SOPA bar times

    Changed paths:
    U web/php/trunk/include/layout.inc

    Modified: web/php/trunk/include/layout.inc
    ===================================================================
    --- web/php/trunk/include/layout.inc 2012-01-18 10:48:16 UTC (rev 322444)
    +++ web/php/trunk/include/layout.inc 2012-01-18 13:23:10 UTC (rev 322445)
    @@ -200,8 +200,8 @@


    $ts = time();
    - // Hardcode 1pm Jan.18 UTC to 1am Jan.19 UTC time window
    - if($ts>=1295355600 && $ts<1295398800) {
    + // Hardcode 11am Jan.18 UTC to 5am Jan.19 UTC time window
    + if($ts>=1326884400 && $ts<1326949200) {
    $sopa_bar = <<<EOBAR
    <div style="width:100%;height:50px;vertical-align:middle;text-align:center;background-color:#000;color:#ffffff; position:absolute;z-index:5555;top:8px;left:0px;background:#000000;"><p style="margin-top:15px;">Stop SOPA/PIPA <a href="http://americancensorship.org">[americancensorship.org]</a></p></div>
    EOBAR;
  • Daniel P. Brown at Jan 18, 2012 at 8:18 pm
    danbrown Wed, 18 Jan 2012 20:17:58 +0000

    Revision: http://svn.php.net/viewvc?view=revision&revision=322454

    Log:
    Late to the game, but a minor hack to make the link a bit more noticeable and readable against the black background.

    Changed paths:
    U web/php/trunk/include/layout.inc

    Modified: web/php/trunk/include/layout.inc
    ===================================================================
    --- web/php/trunk/include/layout.inc 2012-01-18 19:46:55 UTC (rev 322453)
    +++ web/php/trunk/include/layout.inc 2012-01-18 20:17:58 UTC (rev 322454)
    @@ -203,7 +203,7 @@
    // Hardcode 11am Jan.18 UTC to 5am Jan.19 UTC time window
    if($ts>=1326884400 && $ts<1326949200) {
    $sopa_bar = <<<EOBAR
    -<div style="width:100%;height:50px;vertical-align:middle;text-align:center;background-color:#000;color:#ffffff; position:absolute;z-index:5555;top:8px;left:0px;background:#000000;"><p style="margin-top:15px;">Stop SOPA/PIPA <a href="http://americancensorship.org">[americancensorship.org]</a></p></div>
    +<div style="width:100%;height:50px;vertical-align:middle;text-align:center;background-color:#000;color:#ffffff; position:absolute;z-index:5555;top:8px;left:0px;background:#000000;"><p style="margin-top:15px;">Stop SOPA/PIPA <a href="http://americancensorship.org" style="color:#dede00;">[americancensorship.org]</a></p></div>
    EOBAR;
    } else $sopa_bar = '';
  • Philip Olson at Jan 19, 2012 at 3:09 am
    philip Wed, 18 Jan 2012 07:47:08 +0000

    Revision: http://svn.php.net/viewvc?view=revision&revision=322435

    Log:
    Bah, humbug

    Changed paths:
    U web/php/trunk/include/layout.inc

    Modified: web/php/trunk/include/layout.inc
    ===================================================================
    --- web/php/trunk/include/layout.inc 2012-01-18 07:43:06 UTC (rev 322434)
    +++ web/php/trunk/include/layout.inc 2012-01-18 07:47:08 UTC (rev 322435)
    @@ -232,7 +232,7 @@

    <div id="headnav">
    $sopa_bar
    - <a href="/" rel="home"><img src="{$_SERVER['STATIC_ROOT']}/images/php_snow_2008.gif"
    + <a href="/" rel="home"><img src="{$_SERVER['STATIC_ROOT']}/images/php.gif"
    alt="PHP" width="120" height="67" id="phplogo" /></a>
    <div id="headmenu">
    <a href="/downloads.php">downloads</a> |
  • Rasmus Lerdorf at Jan 19, 2012 at 5:17 pm
    rasmus Thu, 19 Jan 2012 17:17:12 +0000

    Revision: http://svn.php.net/viewvc?view=revision&revision=322472

    Log:
    Fix XSS here

    Changed paths:
    U web/php/trunk/include/layout.inc

    Modified: web/php/trunk/include/layout.inc
    ===================================================================
    --- web/php/trunk/include/layout.inc 2012-01-19 16:16:48 UTC (rev 322471)
    +++ web/php/trunk/include/layout.inc 2012-01-19 17:17:12 UTC (rev 322472)
    @@ -673,7 +673,7 @@
    <?php

    // Print long description
    - echo preg_replace("/\r?\n\r?\n/", "<br /><br />", trim($event['ldesc']));
    + echo preg_replace("/\r?\n\r?\n/", "<br /><br />", trim(htmlentities($event['ldesc'],ENT_QUOTES | ENT_IGNORE, 'UTF-8')));
    // If we have an URL, print it out
    if ($event['url']) {
    echo '<br /><br /><b>URL:</b> ',

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-webmaster @
categoriesphp
postedJan 15, '12 at 12:10a
activeJan 19, '12 at 5:17p
posts5
users4
websitephp.net

People

Translate

site design / logo © 2022 Grokbase