cvs: bugtracker /includes cache_generate.php /template/generic/admin index.php /template/generic/admin/cache index.php purge.php

From: Date: Thu, 14 Aug 2008 11:27:23 +0000
Subject: cvs: bugtracker /includes cache_generate.php /template/generic/admin index.php /template/generic/admin/cache index.php purge.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-2425@lists.php.net to get a copy of this message
bcarlyon Thu Aug 14 11:27:23 2008 UTC Added files: /bugtracker/template/generic/admin/cache index.php purge.php Modified files: /bugtracker/includes cache_generate.php /bugtracker/template/generic/admin index.php Log: Altered where the admin cache files live http://cvs.php.net/viewvc.cgi/bugtracker/includes/cache_generate.php?r1=1.12&r2=1.13&diff_format=u Index: bugtracker/includes/cache_generate.php diff -u bugtracker/includes/cache_generate.php:1.12 bugtracker/includes/cache_generate.php:1.13 --- bugtracker/includes/cache_generate.php:1.12 Thu Aug 14 11:05:02 2008 +++ bugtracker/includes/cache_generate.php Thu Aug 14 11:27:23 2008 @@ -37,12 +37,12 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: cache_generate.php,v 1.12 2008/08/14 11:05:02 bcarlyon Exp $ +* @version CVS: $Id: cache_generate.php,v 1.13 2008/08/14 11:27:23 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ //$cache = $_REQUEST['cache']; -$cache = 'all'; +//$cache = 'all'; //$mode = $_REQUEST['mode']; //acceptable modes http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/admin/index.php?r1=1.7&r2=1.8&diff_format=u Index: bugtracker/template/generic/admin/index.php diff -u bugtracker/template/generic/admin/index.php:1.7 bugtracker/template/generic/admin/index.php:1.8 --- bugtracker/template/generic/admin/index.php:1.7 Thu Aug 14 10:00:53 2008 +++ bugtracker/template/generic/admin/index.php Thu Aug 14 11:27:23 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: index.php,v 1.7 2008/08/14 10:00:53 bcarlyon Exp $ +* @version CVS: $Id: index.php,v 1.8 2008/08/14 11:27:23 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -54,7 +54,7 @@ <li>Update Karma</li> <li>Edit User</li> <li>Change Cache</li> -<li><a href="/admin/purge/" title="Purge">Purge and Regenerate the Cache</a></li> +<li><a href="/admin/cache/purge/" title="Purge">Purge and Regenerate the Cache</a></li> </ul>'; $template->prehtml = $content; http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/admin/cache/index.php?view=markup&rev=1.1 Index: bugtracker/template/generic/admin/cache/index.php +++ bugtracker/template/generic/admin/cache/index.php <?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:*/ /** * template/generic/admin/cache/index.php * Regenerate the cache * * Copyright (c) 2008, Barry Carlyon <bcarlyon@php.net> * All rights reserved. * * PHP versions 5 * * LICENSE: Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * @category BugTracking * @package GSoC Bugtracker * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License * @version CVS: $Id: index.php,v 1.1 2008/08/14 11:27:23 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ $method = loadvar('method'); $method = str_replace('/','',$method); if (empty($method)) { $template->meta_refresh(); trigger_error('No method',E_USER_ERROR); } elseif ($user->logged_in && $user->check_karma('bugz_admin')) { if (is_file(dirname(__FILE__) . '/' . $method . '.php')) { include($method . '.php'); } else { $template->meta_refresh(); trigger_error('No valid method file', E_USER_ERROR); } } else { $session->end_session(); } http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/admin/cache/purge.php?view=markup&rev=1.1 Index: bugtracker/template/generic/admin/cache/purge.php +++ bugtracker/template/generic/admin/cache/purge.php <?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:*/ /** * template/generic/admin/purgephp * Regenerate the cache * * Copyright (c) 2008, Barry Carlyon <bcarlyon@php.net> * All rights reserved. * * PHP versions 5 * * LICENSE: Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * @category BugTracking * @package GSoC Bugtracker * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License * @version CVS: $Id: purge.php,v 1.1 2008/08/14 11:27:23 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ $template->page_title .= 'Cache Purge'; $template->content_title = 'Cache Purge'; $cache = 'all'; include('cache_generate.php'); $template->prehtml = '<div id="success">Cache Purged OK</div>'; $template->meta_refresh();

« previous php.webmaster (#2425) next »