Skip to content

Commit b8e5153

Browse files
committed
chapter 5:暴力破解目录和文件
1 parent b80f619 commit b8e5153

File tree

4,906 files changed

+795067
-29
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,906 files changed

+795067
-29
lines changed

我手敲的代码(中文注释)/.idea/workspace.xml

Lines changed: 160 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

我手敲的代码(中文注释)/chapter5/Joomla/LICENSE.txt

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
1- What is this?
2+
* This is a Joomla! installation/upgrade package to version 3.x
3+
* Joomla! Official site: http://www.joomla.org
4+
* Joomla! 3.4 version history - https://docs.joomla.org/Joomla_3.4_version_history
5+
* Detailed changes in the Changelog: https://github.com/joomla/joomla-cms/commits/master
6+
7+
2- What is Joomla?
8+
* Joomla is a Content Management System (CMS) which enables you to build Web sites and powerful online applications.
9+
* It's a free and OpenSource software, distributed under the GNU General Public License version 2 or later
10+
* This is a simple and powerful web server application and it requires a server with PHP and either MySQL, PostgreSQL, or SQL Server to run it.
11+
More details here: http://www.joomla.org/about-joomla.html
12+
13+
3- Is Joomla for you?
14+
* Joomla is the right solution for any content web project: https://docs.joomla.org/Joomla_Is_it_for_me%3F
15+
* See Features - http://www.joomla.org/core-features.html
16+
* Try out our online demo: https://demo.joomla.org/
17+
18+
4- How to find a Joomla! translation?
19+
* Repository of accredited language packs: http://community.joomla.org/translations.html
20+
* You can also add languages directly to your website via your Joomla! administration panel.
21+
22+
5- Learn Joomla!
23+
* Read Getting Started with Joomla to find out the basics: https://docs.joomla.org/Getting_Started_with_Joomla!
24+
* Before installing, read the beginners guide: https://docs.joomla.org/Beginners
25+
26+
6- What are the limits of Joomla?
27+
* Joomla sites can be extended in functionalities with Extensions that you can create (or download) to suite your needs.
28+
* There are lots of ready made extensions that you can download and install.
29+
* See the Joomla! Extensions Directory (JED): http://extensions.joomla.org
30+
31+
7- Is it easy to change the layout display?
32+
* The layout is controlled by templates that you can edit.
33+
* There are lots of ready made templates that you can download.
34+
35+
8- Ready to install Joomla?
36+
* See minimum requirements here: http://www.joomla.org/technical-requirements.html
37+
* How do you install Joomla! ? - https://docs.joomla.org/Installing_Joomla!
38+
* Start your Joomla experience building your site with a local test server.
39+
When ready it can be moved to an on-line hosting account of your choice.
40+
See the tutorial: https://docs.joomla.org/Tutorial:Joomla_Local_install
41+
42+
9- Updates are free!
43+
* Always use the latest version: http://www.joomla.org/download.html
44+
45+
10- Where can you get support and help?
46+
* The Joomla! Documentation: https://docs.joomla.org/Main_Page
47+
* FAQ Frequently Asked Questions: https://docs.joomla.org/Category:FAQ
48+
* Find the information you need: https://docs.joomla.org/Start_here
49+
* Find help and other users: http://www.joomla.org/about-joomla/create-and-share.html
50+
* Post questions at our forums: http://forum.joomla.org
51+
* Joomla Resources Directory (JRD): http://resources.joomla.org/
52+
53+
11- Do you already have a Joomla site that's not built with Joomla 3.x ?
54+
* What's new in Joomla 3.x: http://www.joomla.org/3
55+
* What are the main differences from 2.5 to 3? Table of contents: https://docs.joomla.org/Differences_from_Joomla_2.5_to_Joomla_3.0
56+
* How to migrate from 2.5.x to 3.x? Tutorial: https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration
57+
* How to migrate from 1.5.x to 3.x? Tutorial: https://docs.joomla.org/Joomla_1.5_to_3.x_Step_by_Step_Migration
58+
* Convert an existing Web site to Joomla: https://docs.joomla.org/How_to_Convert_an_existing_Web_site_to_a_Joomla!_Web_site
59+
60+
12- Do you want to improve Joomla?
61+
* How do you request a feature? https://docs.joomla.org/How_do_you_request_a_feature%3F
62+
* How do you report a bug? https://docs.joomla.org/Filing_bugs_and_issues
63+
* Get Involved: Joomla! is a community developed software. Join the community at http://volunteers.joomla.org/
64+
* Are you a Developer? https://docs.joomla.org/Developers
65+
* Are you a Web designer? https://docs.joomla.org/Web_designers
66+
67+
Copyright:
68+
* Copyright (C) 2005 - 2015 Open Source Matters. All rights reserved.
69+
* Special Thanks: https://docs.joomla.org/Joomla!_Credits_and_Thanks
70+
* Distributed under the GNU General Public License version 2 or later
71+
* See Licenses details at https://docs.joomla.org/Joomla_Licenses
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!DOCTYPE html><title></title>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
/**
3+
* @package Joomla.Administrator
4+
* @subpackage com_admin
5+
*
6+
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
7+
* @license GNU General Public License version 2 or later; see LICENSE.txt
8+
*/
9+
10+
defined('_JEXEC') or die;
11+
JHtml::_('behavior.tabstate');
12+
13+
// No access check.
14+
15+
$controller = JControllerLegacy::getInstance('Admin');
16+
$controller->execute(JFactory::getApplication()->input->get('task'));
17+
$controller->redirect();
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<extension type="component" version="3.1" method="upgrade">
3+
<name>com_admin</name>
4+
<author>Joomla! Project</author>
5+
<creationDate>April 2006</creationDate>
6+
<copyright>(C) 2005 - 2015 Open Source Matters. All rights reserved.</copyright>
7+
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
8+
<authorEmail>admin@joomla.org</authorEmail>
9+
<authorUrl>www.joomla.org</authorUrl>
10+
<version>3.0.0</version>
11+
<description>COM_ADMIN_XML_DESCRIPTION</description>
12+
<media />
13+
<administration>
14+
<files folder="admin">
15+
<filename>admin.php</filename>
16+
<filename>controller.php</filename>
17+
<folder>helpers</folder>
18+
<folder>models</folder>
19+
<folder>views</folder>
20+
</files>
21+
<languages folder="admin">
22+
<language tag="en-GB">language/en-GB.com_admin.ini</language>
23+
<language tag="en-GB">language/en-GB.com_admin.sys.ini</language>
24+
</languages>
25+
</administration>
26+
</extension>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
/**
3+
* @package Joomla.Administrator
4+
* @subpackage com_admin
5+
*
6+
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
7+
* @license GNU General Public License version 2 or later; see LICENSE.txt
8+
*/
9+
10+
defined('_JEXEC') or die;
11+
12+
/**
13+
* Admin Controller
14+
*
15+
* @since 1.6
16+
*/
17+
class AdminController extends JControllerLegacy
18+
{
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?php
2+
/**
3+
* @package Joomla.Administrator
4+
* @subpackage com_admin
5+
*
6+
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
7+
* @license GNU General Public License version 2 or later; see LICENSE.txt
8+
*/
9+
10+
defined('_JEXEC') or die;
11+
12+
/**
13+
* User profile controller class.
14+
*
15+
* @since 1.6
16+
*/
17+
class AdminControllerProfile extends JControllerForm
18+
{
19+
/**
20+
* Method to check if you can edit a record.
21+
*
22+
* Extended classes can override this if necessary.
23+
*
24+
* @param array $data An array of input data.
25+
* @param string $key The name of the key for the primary key.
26+
*
27+
* @return boolean
28+
*
29+
* @since 1.6
30+
*/
31+
protected function allowEdit($data = array(), $key = 'id')
32+
{
33+
return isset($data['id']) && $data['id'] == JFactory::getUser()->id;
34+
}
35+
36+
/**
37+
* Overrides parent save method to check the submitted passwords match.
38+
*
39+
* @param string $key The name of the primary key of the URL variable.
40+
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
41+
*
42+
* @return boolean True if successful, false otherwise.
43+
*
44+
* @since 3.2
45+
*/
46+
public function save($key = null, $urlVar = null)
47+
{
48+
$this->setRedirect(JRoute::_('index.php?option=com_admin&view=profile&layout=edit&id=' . JFactory::getUser()->id, false));
49+
50+
$return = parent::save();
51+
52+
if ($this->getTask() != 'apply')
53+
{
54+
// Redirect to the main page.
55+
$this->setRedirect(JRoute::_('index.php', false));
56+
}
57+
58+
return $return;
59+
}
60+
61+
/**
62+
* Method to cancel an edit.
63+
*
64+
* @param string $key The name of the primary key of the URL variable.
65+
*
66+
* @return Boolean True if access level checks pass, false otherwise.
67+
*
68+
* @since 1.6
69+
*/
70+
public function cancel($key = null)
71+
{
72+
$return = parent::cancel($key);
73+
74+
// Redirect to the main page.
75+
$this->setRedirect(JRoute::_('index.php', false));
76+
77+
return $return;
78+
}
79+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?php
2+
/**
3+
* @package Joomla.Administrator
4+
* @subpackage com_admin
5+
*
6+
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
7+
* @license GNU General Public License version 2 or later; see LICENSE.txt
8+
*/
9+
10+
defined('_JEXEC') or die;
11+
12+
/**
13+
* Utility class working with directory
14+
*
15+
* @since 1.6
16+
*/
17+
abstract class JHtmlDirectory
18+
{
19+
/**
20+
* Method to generate a (un)writable message for directory
21+
*
22+
* @param boolean $writable is the directory writable?
23+
*
24+
* @return string html code
25+
*/
26+
public static function writable($writable)
27+
{
28+
if ($writable)
29+
{
30+
return '<span class="badge badge-success">' . JText::_('COM_ADMIN_WRITABLE') . '</span>';
31+
}
32+
33+
return '<span class="badge badge-important">' . JText::_('COM_ADMIN_UNWRITABLE') . '</span>';
34+
}
35+
36+
/**
37+
* Method to generate a message for a directory
38+
*
39+
* @param string $dir the directory
40+
* @param boolean $message the message
41+
* @param boolean $visible is the $dir visible?
42+
*
43+
* @return string html code
44+
*/
45+
public static function message($dir, $message, $visible = true)
46+
{
47+
$output = $visible ? $dir : '';
48+
49+
if (empty($message))
50+
{
51+
return $output;
52+
}
53+
54+
return $output . ' <strong>' . JText::_($message) . '</strong>';
55+
}
56+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?php
2+
/**
3+
* @package Joomla.Administrator
4+
* @subpackage com_admin
5+
*
6+
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
7+
* @license GNU General Public License version 2 or later; see LICENSE.txt
8+
*/
9+
10+
defined('_JEXEC') or die;
11+
12+
/**
13+
* Utility class working with phpsetting
14+
*
15+
* @since 1.6
16+
*/
17+
abstract class JHtmlPhpSetting
18+
{
19+
/**
20+
* Method to generate a boolean message for a value
21+
*
22+
* @param boolean $val is the value set?
23+
*
24+
* @return string html code
25+
*/
26+
public static function boolean($val)
27+
{
28+
return JText::_($val ? 'JON' : 'JOFF');
29+
}
30+
31+
/**
32+
* Method to generate a boolean message for a value
33+
*
34+
* @param boolean $val is the value set?
35+
*
36+
* @return string html code
37+
*/
38+
public static function set($val)
39+
{
40+
return JText::_($val ? 'JYES' : 'JNO');
41+
}
42+
43+
/**
44+
* Method to generate a string message for a value
45+
*
46+
* @param string $val a php ini value
47+
*
48+
* @return string html code
49+
*/
50+
public static function string($val)
51+
{
52+
return !empty($val) ? $val : JText::_('JNONE');
53+
}
54+
55+
/**
56+
* Method to generate an integer from a value
57+
*
58+
* @param string $val a php ini value
59+
*
60+
* @return string html code
61+
*
62+
* @deprecated 4.0 Use intval() or casting instead.
63+
*/
64+
public static function integer($val)
65+
{
66+
JLog::add(
67+
'JHtmlPhpSetting::integer() is deprecated. Use intval() or casting instead.',
68+
JLog::WARNING,
69+
'deprecated'
70+
);
71+
72+
return (int) $val;
73+
}
74+
}

0 commit comments

Comments
 (0)