[PATCH] Removing smarty?
| From: | Hannes Magnusson | Date: | Sun, 03 Feb 2008 14:17:37 +0000 |
| Subject: | [PATCH] Removing smarty? | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-964@lists.php.net to get a copy of this message | ||
Hi all
Now that smarty has moved away from php.net I see no reason to keep
them on doc.php.net...
Any objections to the attached patch?
-Hannes
? smarty.patch Index: cron/weekly/checkent =================================================================== RCS file: /repository/docweb/cron/weekly/checkent,v retrieving revision 1.7 diff -u -p -r1.7 checkent --- cron/weekly/checkent 25 Jan 2005 18:15:40 -0000 1.7 +++ cron/weekly/checkent 3 Feb 2008 14:11:59 -0000 @@ -7,5 +7,4 @@ export NUMFORKS=10 cd ${SCRIPTSDIR} ${PHP} checkent.php phpdoc ${PHP} checkent.php peardoc -${PHP} checkent.php smarty ${PHP} checkent.php gtk Index: include/lib_general.inc.php =================================================================== RCS file: /repository/docweb/include/lib_general.inc.php,v retrieving revision 1.54 diff -u -p -r1.54 lib_general.inc.php --- include/lib_general.inc.php 15 Sep 2007 01:23:54 -0000 1.54 +++ include/lib_general.inc.php 3 Feb 2008 14:11:59 -0000 @@ -188,7 +188,7 @@ function site_nav_provider() if (strpos($_SERVER['REQUEST_URI'], 'rfc') !== false) { $links['submit-rfc'] = BASE_URL .'/rfc/rfc-proposal-edit.php'; } - if (in_array(SITE, array('gtk', 'pear', 'php', 'smarty'))) { + if (in_array(SITE, array('gtk', 'pear', 'php'))) { $links['rev-check'] = BASE_URL .'/revcheck.php'; } if (SITE == 'php') { @@ -199,7 +199,6 @@ function site_nav_provider() switch(SITE) { case 'php': case 'pear': - case 'smarty': case 'gtk': $links['checkent'] = BASE_URL . '/checkent.php'; break; @@ -217,7 +216,6 @@ function site_nav_provider() $links['phpt-generator'] = BASE_URL . '/phpt_generator.php'; case 'pear': - case 'smarty': } } Index: include/lib_proj_lang.inc.php =================================================================== RCS file: /repository/docweb/include/lib_proj_lang.inc.php,v retrieving revision 1.11 diff -u -p -r1.11 lib_proj_lang.inc.php --- include/lib_proj_lang.inc.php 15 Sep 2007 01:23:54 -0000 1.11 +++ include/lib_proj_lang.inc.php 3 Feb 2008 14:11:59 -0000 @@ -29,7 +29,6 @@ $PROJECTS = array( // project => (Name, local folder, cvs module) 'www' => array('Documentation', '', ''), 'php' => array('PHP Documentation', 'phpdoc-all', 'phpdoc/en'), - 'smarty' => array('Smarty', 'smarty/docs', 'smarty/docs/en'), 'pear' => array('PEAR Documentation', 'peardoc', 'peardoc/en'), 'gtk' => array('PHP-GTK Documentation', 'php-gtk-doc', 'php-gtk-doc/manual/en'), 'phd' => array('phd', '', ''), Index: scripts/checkent.php =================================================================== RCS file: /repository/docweb/scripts/checkent.php,v retrieving revision 1.20 diff -u -p -r1.20 checkent.php --- scripts/checkent.php 24 Apr 2005 11:33:10 -0000 1.20 +++ scripts/checkent.php 3 Feb 2008 14:11:59 -0000 @@ -39,18 +39,13 @@ switch (isset($_SERVER['argv'][1]) ? $_S $entType = 'pear'; break; - case 'smarty': - $filename = CVS_DIR . '/smarty/docs/entities/global.ent'; - $entType = 'smarty'; - break; - case 'gtk': $filename = CVS_DIR . '/php-gtk-doc/manual/global.ent'; $entType = 'gtk'; break; default: - echo "Usage: {$_SERVER['argv'][0]} phpdoc|peardoc|smarty|gtk\n"; + echo "Usage: {$_SERVER['argv'][0]} phpdoc|peardoc|gtk\n"; die(); } Index: scripts/gen_picture_info_all_lang.php =================================================================== RCS file: /repository/docweb/scripts/gen_picture_info_all_lang.php,v retrieving revision 1.9 diff -u -p -r1.9 gen_picture_info_all_lang.php --- scripts/gen_picture_info_all_lang.php 13 Nov 2004 16:45:34 -0000 1.9 +++ scripts/gen_picture_info_all_lang.php 3 Feb 2008 14:11:59 -0000 @@ -12,7 +12,6 @@ include '../include/lib_revcheck.inc.php $type_col_bar = array( 'php' => '9999cc', -'smarty' => 'f0c040', 'pear' => '339900', 'gtk' => '0099cc' Index: scripts/generation.sh =================================================================== RCS file: /repository/docweb/scripts/generation.sh,v retrieving revision 1.8 diff -u -p -r1.8 generation.sh --- scripts/generation.sh 15 Dec 2004 10:07:18 -0000 1.8 +++ scripts/generation.sh 3 Feb 2008 14:11:59 -0000 @@ -25,16 +25,6 @@ ${PHP} -q ./gen_picture_info.php pear echo "... done" -# SMARTY -echo "Generating SMARTY database" -${PHP} -q ./rev.php smarty -echo "... done." -echo "Generating SMARTY pictures" -${PHP} -q ./gen_picture_info.php smarty -echo "... done" - - - echo "Generating global graphs" ${PHP} -q ./gen_picture_info_all_lang.php echo "... done" Index: scripts/populatedocs.sh =================================================================== RCS file: /repository/docweb/scripts/populatedocs.sh,v retrieving revision 1.10 diff -u -p -r1.10 populatedocs.sh --- scripts/populatedocs.sh 27 Jan 2007 19:03:38 -0000 1.10 +++ scripts/populatedocs.sh 3 Feb 2008 14:11:59 -0000 @@ -35,8 +35,6 @@ echo "Checking out PHP docs..." /usr/bin/cvs -d :pserver:cvsread@cvs.php.net:/repository co phpdoc-all echo "Checking out PHP GTK docs..." /usr/bin/cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk-doc -echo "Checking out Smarty docs..." -/usr/bin/cvs -d :pserver:cvsread@cvs.php.net:/repository co smarty/docs echo "Checking out PEAR docs..." /usr/bin/cvs -d :pserver:cvsread@cvs.php.net:/repository co peardoc echo "Checking out php-src..." Index: scripts/rev.php =================================================================== RCS file: /repository/docweb/scripts/rev.php,v retrieving revision 1.21 diff -u -p -r1.21 rev.php --- scripts/rev.php 29 Dec 2007 21:04:24 -0000 1.21 +++ scripts/rev.php 3 Feb 2008 14:11:59 -0000 @@ -65,7 +65,7 @@ include '../include/init.inc.php'; // grab the documentation type $TYPE = array_shift($argv); -if (!in_array($TYPE, array('php', 'smarty', 'pear'))) { +if (!in_array($TYPE, array('php', 'pear'))) { echo "Error: The revcheck script is not available yet for $TYPE\n"; exit(0); } Index: templates/all/www/shared/nav_projects.tpl.php =================================================================== RCS file: /repository/docweb/templates/all/www/shared/nav_projects.tpl.php,v retrieving revision 1.4 diff -u -p -r1.4 nav_projects.tpl.php --- templates/all/www/shared/nav_projects.tpl.php 15 Sep 2007 01:23:54 -0000 1.4 +++ templates/all/www/shared/nav_projects.tpl.php 3 Feb 2008 14:11:59 -0000 @@ -2,5 +2,4 @@ <a href="<?php echo get_insite_address('php'); ?>" class="logo logo-php">&docweb.common.project.php;</a> <a href="<?php echo get_insite_address('pear'); ?>" class="logo logo-pear">&docweb.common.project.pear;</a> <a href="<?php echo get_insite_address('gtk'); ?>" class="logo logo-gtk">&docweb.common.project.php-gtk;</a> - <a href="<?php echo get_insite_address('smarty'); ?>" class="logo logo-smarty">&docweb.common.project.smarty;</a> <a href="<?php echo get_insite_address('phd'); ?>" class="logo logo-phd">&docweb.common.project.phd;</a> Index: www/images/smarty-logo-orange.gif =================================================================== RCS file: www/images/smarty-logo-orange.gif diff -N www/images/smarty-logo-orange.gif Binary files /tmp/cvsL88GVT and /dev/null differ Index: www/images/favicon/smarty/favicon.ico =================================================================== RCS file: www/images/favicon/smarty/favicon.ico diff -N www/images/favicon/smarty/favicon.ico Binary files /tmp/cvsVzdWGk and /dev/null differ Index: www/images/icons/smarty.png =================================================================== RCS file: www/images/icons/smarty.png diff -N www/images/icons/smarty.png Binary files /tmp/cvsr4Ulkn and /dev/null differ Index: www/style/site.css =================================================================== RCS file: /repository/docweb/www/style/site.css,v retrieving revision 1.3 diff -u -p -r1.3 site.css --- www/style/site.css 19 Aug 2004 10:30:53 -0000 1.3 +++ www/style/site.css 3 Feb 2008 14:12:00 -0000 @@ -72,10 +72,6 @@ tr.even td { background-color: #330099; color: white; } -.logo-smarty { - background-color: #f0c040; - color: black; -} .logo-gtk { background-color: #cacaca; color: white; Index: www/style/smarty.css =================================================================== RCS file: www/style/smarty.css diff -N www/style/smarty.css --- www/style/smarty.css 13 Sep 2004 19:31:25 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,76 +0,0 @@ -/* $Id: smarty.css,v 1.2 2004/09/13 19:31:25 vincent Exp $ */ - -@import url(/style/common.css); - -/** - * smarty specific style - **/ - -#HeaderWindows { - background-color: #f0c040; - background-image:url("/images/smarty-logo-orange.gif"); - background-position:top left; - background-repeat:no-repeat; -} - -#LeftData { - background-color: #f0ead8; -} - -#LeftData h2, #CenterData h2 { - color: #000; -} - -#CenterData h3 { - color: #9b410e; - font-style: italic; -} - - -div .ColoredDiv { - background: #f0c040; - padding: 5px; - border: solid 1px #666699; - width: 70%; -} - -th { - background: #f0c040; -} - -/* Les liens */ - -a { - font-weight: normal; - color: #3b404c; -} - -a:hover { - border-bottom: 1px dotted #003300; -} - -#Nav1 a { - color: #000; -} - -#Nav1 a:hover { - border-bottom: 1px dotted #000; -} - -#Nav2, #FooterData { - background-color: #9b410e; -} - -#Nav2 a, #FooterData a { - color: #fff; -} - -#Nav2 a:hover, #FooterData a:hover { - border-bottom: 1px dotted #fff; -} - -/* footer */ - -#FooterData2 { - background-color: #f0c040; -}
? smarty.patch Index: cron/weekly/checkent =================================================================== RCS file: /repository/docweb/cron/weekly/checkent,v retrieving revision 1.7 diff -u -p -r1.7 checkent --- cron/weekly/checkent 25 Jan 2005 18:15:40 -0000 1.7 +++ cron/weekly/checkent 3 Feb 2008 14:11:59 -0000 @@ -7,5 +7,4 @@ export NUMFORKS=10 cd ${SCRIPTSDIR} ${PHP} checkent.php phpdoc ${PHP} checkent.php peardoc -${PHP} checkent.php smarty ${PHP} checkent.php gtk Index: include/lib_general.inc.php =================================================================== RCS file: /repository/docweb/include/lib_general.inc.php,v retrieving revision 1.54 diff -u -p -r1.54 lib_general.inc.php --- include/lib_general.inc.php 15 Sep 2007 01:23:54 -0000 1.54 +++ include/lib_general.inc.php 3 Feb 2008 14:11:59 -0000 @@ -188,7 +188,7 @@ function site_nav_provider() if (strpos($_SERVER['REQUEST_URI'], 'rfc') !== false) { $links['submit-rfc'] = BASE_URL .'/rfc/rfc-proposal-edit.php'; } - if (in_array(SITE, array('gtk', 'pear', 'php', 'smarty'))) { + if (in_array(SITE, array('gtk', 'pear', 'php'))) { $links['rev-check'] = BASE_URL .'/revcheck.php'; } if (SITE == 'php') { @@ -199,7 +199,6 @@ function site_nav_provider() switch(SITE) { case 'php': case 'pear': - case 'smarty': case 'gtk': $links['checkent'] = BASE_URL . '/checkent.php'; break; @@ -217,7 +216,6 @@ function site_nav_provider() $links['phpt-generator'] = BASE_URL . '/phpt_generator.php'; case 'pear': - case 'smarty': } } Index: include/lib_proj_lang.inc.php =================================================================== RCS file: /repository/docweb/include/lib_proj_lang.inc.php,v retrieving revision 1.11 diff -u -p -r1.11 lib_proj_lang.inc.php --- include/lib_proj_lang.inc.php 15 Sep 2007 01:23:54 -0000 1.11 +++ include/lib_proj_lang.inc.php 3 Feb 2008 14:11:59 -0000 @@ -29,7 +29,6 @@ $PROJECTS = array( // project => (Name, local folder, cvs module) 'www' => array('Documentation', '', ''), 'php' => array('PHP Documentation', 'phpdoc-all', 'phpdoc/en'), - 'smarty' => array('Smarty', 'smarty/docs', 'smarty/docs/en'), 'pear' => array('PEAR Documentation', 'peardoc', 'peardoc/en'), 'gtk' => array('PHP-GTK Documentation', 'php-gtk-doc', 'php-gtk-doc/manual/en'), 'phd' => array('phd', '', ''), Index: scripts/checkent.php =================================================================== RCS file: /repository/docweb/scripts/checkent.php,v retrieving revision 1.20 diff -u -p -r1.20 checkent.php --- scripts/checkent.php 24 Apr 2005 11:33:10 -0000 1.20 +++ scripts/checkent.php 3 Feb 2008 14:11:59 -0000 @@ -39,18 +39,13 @@ switch (isset($_SERVER['argv'][1]) ? $_S $entType = 'pear'; break; - case 'smarty': - $filename = CVS_DIR . '/smarty/docs/entities/global.ent'; - $entType = 'smarty'; - break; - case 'gtk': $filename = CVS_DIR . '/php-gtk-doc/manual/global.ent'; $entType = 'gtk'; break; default: - echo "Usage: {$_SERVER['argv'][0]} phpdoc|peardoc|smarty|gtk\n"; + echo "Usage: {$_SERVER['argv'][0]} phpdoc|peardoc|gtk\n"; die(); } Index: scripts/gen_picture_info_all_lang.php =================================================================== RCS file: /repository/docweb/scripts/gen_picture_info_all_lang.php,v retrieving revision 1.9 diff -u -p -r1.9 gen_picture_info_all_lang.php --- scripts/gen_picture_info_all_lang.php 13 Nov 2004 16:45:34 -0000 1.9 +++ scripts/gen_picture_info_all_lang.php 3 Feb 2008 14:11:59 -0000 @@ -12,7 +12,6 @@ include '../include/lib_revcheck.inc.php $type_col_bar = array( 'php' => '9999cc', -'smarty' => 'f0c040', 'pear' => '339900', 'gtk' => '0099cc' Index: scripts/generation.sh =================================================================== RCS file: /repository/docweb/scripts/generation.sh,v retrieving revision 1.8 diff -u -p -r1.8 generation.sh --- scripts/generation.sh 15 Dec 2004 10:07:18 -0000 1.8 +++ scripts/generation.sh 3 Feb 2008 14:11:59 -0000 @@ -25,16 +25,6 @@ ${PHP} -q ./gen_picture_info.php pear echo "... done" -# SMARTY -echo "Generating SMARTY database" -${PHP} -q ./rev.php smarty -echo "... done." -echo "Generating SMARTY pictures" -${PHP} -q ./gen_picture_info.php smarty -echo "... done" - - - echo "Generating global graphs" ${PHP} -q ./gen_picture_info_all_lang.php echo "... done" Index: scripts/populatedocs.sh =================================================================== RCS file: /repository/docweb/scripts/populatedocs.sh,v retrieving revision 1.10 diff -u -p -r1.10 populatedocs.sh --- scripts/populatedocs.sh 27 Jan 2007 19:03:38 -0000 1.10 +++ scripts/populatedocs.sh 3 Feb 2008 14:11:59 -0000 @@ -35,8 +35,6 @@ echo "Checking out PHP docs..." /usr/bin/cvs -d :pserver:cvsread@cvs.php.net:/repository co phpdoc-all echo "Checking out PHP GTK docs..." /usr/bin/cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk-doc -echo "Checking out Smarty docs..." -/usr/bin/cvs -d :pserver:cvsread@cvs.php.net:/repository co smarty/docs echo "Checking out PEAR docs..." /usr/bin/cvs -d :pserver:cvsread@cvs.php.net:/repository co peardoc echo "Checking out php-src..." Index: scripts/rev.php =================================================================== RCS file: /repository/docweb/scripts/rev.php,v retrieving revision 1.21 diff -u -p -r1.21 rev.php --- scripts/rev.php 29 Dec 2007 21:04:24 -0000 1.21 +++ scripts/rev.php 3 Feb 2008 14:11:59 -0000 @@ -65,7 +65,7 @@ include '../include/init.inc.php'; // grab the documentation type $TYPE = array_shift($argv); -if (!in_array($TYPE, array('php', 'smarty', 'pear'))) { +if (!in_array($TYPE, array('php', 'pear'))) { echo "Error: The revcheck script is not available yet for $TYPE\n"; exit(0); } Index: templates/all/www/shared/nav_projects.tpl.php =================================================================== RCS file: /repository/docweb/templates/all/www/shared/nav_projects.tpl.php,v retrieving revision 1.4 diff -u -p -r1.4 nav_projects.tpl.php --- templates/all/www/shared/nav_projects.tpl.php 15 Sep 2007 01:23:54 -0000 1.4 +++ templates/all/www/shared/nav_projects.tpl.php 3 Feb 2008 14:11:59 -0000 @@ -2,5 +2,4 @@ <a href="<?php echo get_insite_address('php'); ?>" class="logo logo-php">&docweb.common.project.php;</a> <a href="<?php echo get_insite_address('pear'); ?>" class="logo logo-pear">&docweb.common.project.pear;</a> <a href="<?php echo get_insite_address('gtk'); ?>" class="logo logo-gtk">&docweb.common.project.php-gtk;</a> - <a href="<?php echo get_insite_address('smarty'); ?>" class="logo logo-smarty">&docweb.common.project.smarty;</a> <a href="<?php echo get_insite_address('phd'); ?>" class="logo logo-phd">&docweb.common.project.phd;</a> Index: www/images/smarty-logo-orange.gif =================================================================== RCS file: www/images/smarty-logo-orange.gif diff -N www/images/smarty-logo-orange.gif Binary files /tmp/cvsL88GVT and /dev/null differ Index: www/images/favicon/smarty/favicon.ico =================================================================== RCS file: www/images/favicon/smarty/favicon.ico diff -N www/images/favicon/smarty/favicon.ico Binary files /tmp/cvsVzdWGk and /dev/null differ Index: www/images/icons/smarty.png =================================================================== RCS file: www/images/icons/smarty.png diff -N www/images/icons/smarty.png Binary files /tmp/cvsr4Ulkn and /dev/null differ Index: www/style/site.css =================================================================== RCS file: /repository/docweb/www/style/site.css,v retrieving revision 1.3 diff -u -p -r1.3 site.css --- www/style/site.css 19 Aug 2004 10:30:53 -0000 1.3 +++ www/style/site.css 3 Feb 2008 14:12:00 -0000 @@ -72,10 +72,6 @@ tr.even td { background-color: #330099; color: white; } -.logo-smarty { - background-color: #f0c040; - color: black; -} .logo-gtk { background-color: #cacaca; color: white; Index: www/style/smarty.css =================================================================== RCS file: www/style/smarty.css diff -N www/style/smarty.css --- www/style/smarty.css 13 Sep 2004 19:31:25 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,76 +0,0 @@ -/* $Id: smarty.css,v 1.2 2004/09/13 19:31:25 vincent Exp $ */ - -@import url(/style/common.css); - -/** - * smarty specific style - **/ - -#HeaderWindows { - background-color: #f0c040; - background-image:url("/images/smarty-logo-orange.gif"); - background-position:top left; - background-repeat:no-repeat; -} - -#LeftData { - background-color: #f0ead8; -} - -#LeftData h2, #CenterData h2 { - color: #000; -} - -#CenterData h3 { - color: #9b410e; - font-style: italic; -} - - -div .ColoredDiv { - background: #f0c040; - padding: 5px; - border: solid 1px #666699; - width: 70%; -} - -th { - background: #f0c040; -} - -/* Les liens */ - -a { - font-weight: normal; - color: #3b404c; -} - -a:hover { - border-bottom: 1px dotted #003300; -} - -#Nav1 a { - color: #000; -} - -#Nav1 a:hover { - border-bottom: 1px dotted #000; -} - -#Nav2, #FooterData { - background-color: #9b410e; -} - -#Nav2 a, #FooterData a { - color: #fff; -} - -#Nav2 a:hover, #FooterData a:hover { - border-bottom: 1px dotted #fff; -} - -/* footer */ - -#FooterData2 { - background-color: #f0c040; -}