403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/icd/administrator/components/com_article_list/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/icd/administrator/components/com_article_list/admin.article_list.php
<?php
/**
/************************************************************************
* Article List - Joomla! Component                       
* Copyright (C) 2008 by Dwayne Hill          
* Homepage   : www.jettheblackcat.com        
* Version    : 1.0.0 beta 1                  
* License    : 
* The Article List component is released under the GNU General public License, version 2 
* See: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html for the full license.
* Warranty:
* JetTheBlackCat.com PRODUCTS ARE DISTRIBUTED AS IS. 
* NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED. 
* YOU USE IT AT YOUR OWN RISK. 
* JetTheBlackCat AND ANY ASSOCIATES WILL NOT BE LIABLE FOR ANY DAMAGES, 
* INCLUDING BUT NOT LIMITED TO DATA LOSS, LOSS OF PROFITS 
* OR ANY OTHER KIND OF LOSS RELATED TO JetTheBlackCat products 
************************************************************************/

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

// ensure user has access to this function
if (!($acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'all' ) | $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'com_contact' ))) {
	mosRedirect( 'index2.php', _NOT_AUTH );
}

require_once( $mainframe->getPath( 'admin_html' ) );

switch ($task) {
	case 'save':
		savearticle_list( $option );
		break;

  	case 'cancel':
		cancelarticle_list( );
		break;

	default:
		showarticle_list( $option );
		break;
}

/**
* List the records
* @param string The current GET/POST option
*/
function showarticle_list( $option ) {
	global $database, $mainframe;

	$query = "SELECT a.id"
	. "\n FROM #__components AS a"
	. "\n WHERE ( a.admin_menu_link = 'option=com_article_list' OR a.admin_menu_link = 'option=com_article_list&hidemainmenu=1' )"
	. "\n AND a.option = 'com_article_list'"
	;
	$database->setQuery( $query );
	$id = $database->loadResult();

	// load the row from the db table
	$row = new mosComponent( $database );
	$row->load( $id );

	// get params definitions
	$params = new mosParameters( $row->params, $mainframe->getPath( 'com_xml', $row->option ), 'component' );

	HTML_article_list::settings( $option, $params, $id );
}

/**
* Saves the record from an edit form submit
* @param string The current GET/POST option
*/
function savearticle_list( $option ) {
	global $database;
	
	josSpoofCheck();

	$params = mosGetParam( $_POST, 'params', '' );
	if (is_array( $params )) {
		$txt = array();
		foreach ($params as $k=>$v) {
			$txt[] = "$k=$v";
		}
		$_POST['params'] = mosParameters::textareaHandling( $txt );
	}

	$id = intval( mosGetParam( $_POST, 'id', '17' ) );
	$row = new mosComponent( $database );
	$row->load( $id );

	if (!$row->bind( $_POST )) {
		echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n";
		exit();
	}

	if (!$row->check()) {
		echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n";
		exit();
	}
	if (!$row->store()) {
		echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n";
		exit();
	}

	$msg = 'Settings successfully Saved';
	mosRedirect( 'index2.php?option='. $option, $msg );
}

/**
* Cancels editing and checks in the record
*/
function cancelarticle_list(){
	mosRedirect( 'index2.php' );
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit