Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
insepet /
libromaster /
lib /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
behat
[ DIR ]
drwxrwxrwx
fixtures
[ DIR ]
drwxrwxrwx
other
[ DIR ]
drwxrwxrwx
performance
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
accesslib_test.php
121.33
KB
-rwxrwxrwx
admintree_test.php
4.01
KB
-rwxrwxrwx
authlib_test.php
6.87
KB
-rwxrwxrwx
blocklib_test.php
13.18
KB
-rwxrwxrwx
code_test.php
2.89
KB
-rwxrwxrwx
completionlib_advanced_test.ph...
4.3
KB
-rwxrwxrwx
completionlib_test.php
29.62
KB
-rwxrwxrwx
componentlib_test.php
6.62
KB
-rwxrwxrwx
conditionlib_test.php
33.62
KB
-rwxrwxrwx
configonlylib_test.php
5.62
KB
-rwxrwxrwx
coursecatlib_test.php
27.33
KB
-rwxrwxrwx
csslib_test.php
54.76
KB
-rwxrwxrwx
csvclass_test.php
5.53
KB
-rwxrwxrwx
datalib_test.php
12.26
KB
-rwxrwxrwx
environment_test.php
1.57
KB
-rwxrwxrwx
eventslib_test.php
7.97
KB
-rwxrwxrwx
externallib_test.php
6.19
KB
-rwxrwxrwx
filelib_test.php
14.51
KB
-rwxrwxrwx
filter_test.php
26.7
KB
-rwxrwxrwx
formslib_test.php
28.63
KB
-rwxrwxrwx
gradelib_test.php
2.03
KB
-rwxrwxrwx
grouplib_test.php
18.92
KB
-rwxrwxrwx
html2text_test.php
6.15
KB
-rwxrwxrwx
htmlpurifier_test.php
9.8
KB
-rwxrwxrwx
htmlwriter_test.php
6.3
KB
-rwxrwxrwx
markdown_test.php
2.21
KB
-rwxrwxrwx
mathslib_test.php
8.21
KB
-rwxrwxrwx
medialib_test.php
23.77
KB
-rwxrwxrwx
messagelib_test.php
7.46
KB
-rwxrwxrwx
modinfolib_test.php
8.07
KB
-rwxrwxrwx
moodlelib_test.php
123.49
KB
-rwxrwxrwx
navigationlib_test.php
24.21
KB
-rwxrwxrwx
outputcomponents_test.php
18.2
KB
-rwxrwxrwx
outputlib_test.php
8.9
KB
-rwxrwxrwx
outputrequirementslib_test.php
1.71
KB
-rwxrwxrwx
pagelib_test.php
22.8
KB
-rwxrwxrwx
pluginlib_test.php
37.15
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
questionlib_test.php
3.1
KB
-rwxrwxrwx
rsslib_test.php
7.12
KB
-rwxrwxrwx
setuplib_test.php
5.73
KB
-rwxrwxrwx
statslib_test.php
19.13
KB
-rwxrwxrwx
string_test.php
4.21
KB
-rwxrwxrwx
textlib_test.php
24.62
KB
-rwxrwxrwx
upgradelib_test.php
1.47
KB
-rwxrwxrwx
weblib_test.php
16.3
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : rsslib_test.php
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * These tests rely on the rsstest.xml file on download.moodle.org, * from eloys listing: * rsstest.xml: One valid rss feed. * md5: 8fd047914863bf9b3a4b1514ec51c32c * size: 32188 * * If networking/proxy configuration is wrong these tests will fail.. * * @package core * @category phpunit * @copyright 2009 Dan Poltawski * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); global $CFG; require_once($CFG->libdir.'/simplepie/moodle_simplepie.php'); class moodlesimplepie_testcase extends basic_testcase { # A url we know exists and is valid const VALIDURL = 'http://download.moodle.org/unittest/rsstest.xml'; # A url which we know doesn't exist const INVALIDURL = 'http://download.moodle.org/unittest/rsstest-which-doesnt-exist.xml'; # This tinyurl redirects to th rsstest.xml file const REDIRECTURL = 'http://tinyurl.com/lvyslv'; # The number of seconds tests should wait for the server to respond (high to prevent false positives). const TIMEOUT = 10; function setUp() { moodle_simplepie::reset_cache(); } function test_getfeed() { $feed = new moodle_simplepie(); $feed->set_timeout(self::TIMEOUT); $feed->set_feed_url(self::VALIDURL); $feed->init(); $this->assertInstanceOf('moodle_simplepie', $feed); $this->assertNull($feed->error(), "Failed to load the sample RSS file. Please check your proxy settings in Moodle. %s"); if ($feed->error()) { return; } $this->assertEquals($feed->get_title(), 'Moodle News'); $this->assertEquals($feed->get_link(), 'http://moodle.org/mod/forum/view.php?f=1'); $this->assertEquals($feed->get_description(), "General news about Moodle.\n\nMoodle is a leading open-source course management system (CMS) - a software package designed to help educators create quality online courses. Such e-learning systems are sometimes also called Learning Management Systems (LMS) or Virtual Learning Environments (VLE). One of the main advantages of Moodle over other systems is a strong grounding in social constructionist pedagogy."); $this->assertEquals($feed->get_copyright(), '&#169; 2007 moodle'); $this->assertEquals($feed->get_image_url(), 'http://moodle.org/pix/i/rsssitelogo.gif'); $this->assertEquals($feed->get_image_title(), 'moodle'); $this->assertEquals($feed->get_image_link(), 'http://moodle.org/'); $this->assertEquals($feed->get_image_width(), '140'); $this->assertEquals($feed->get_image_height(), '35'); $this->assertNotEmpty($items = $feed->get_items()); $this->assertEquals(count($items), 15); $this->assertNotEmpty($itemone = $feed->get_item(0)); if (!$itemone) { return; } $this->assertEquals($itemone->get_title(), 'Google HOP contest encourages pre-University students to work on Moodle'); $this->assertEquals($itemone->get_link(), 'http://moodle.org/mod/forum/discuss.php?d=85629'); $this->assertEquals($itemone->get_id(), 'http://moodle.org/mod/forum/discuss.php?d=85629'); $description = <<<EOD by Martin Dougiamas. <p><p><img src="http://code.google.com/opensource/ghop/2007-8/images/ghoplogosm.jpg" align="right" style="margin:10px" />After their very successful <a href="http://code.google.com/soc/2007/">Summer of Code</a> program for University students, Google just announced their new <a href="http://code.google.com/opensource/ghop/2007-8/">Highly Open Participation contest</a>, designed to encourage pre-University students to get involved with open source projects via much smaller and diverse contributions.<br /> <br /> I'm very proud that Moodle has been selected as one of only <a href="http://code.google.com/opensource/ghop/2007-8/projects.html">ten open source projects</a> to take part in the inaugural year of this new contest.<br /> <br /> We have a <a href="http://code.google.com/p/google-highly-open-participation-moodle/issues/list">long list of small tasks</a> prepared already for students, but we would definitely like to see the Moodle community come up with more - so if you have any ideas for things you want to see done, please <a href="http://code.google.com/p/google-highly-open-participation-moodle/">send them to us</a>! Just remember they can't take more than five days.<br /> <br /> Google will pay students US$100 for every three tasks they successfully complete, plus send a cool T-shirt. There are also grand prizes including an all-expenses-paid trip to Google HQ in Mountain View, California. If you are (or know) a young student with an interest in Moodle then give it a go! <br /> <br /> You can find out all the details on the <a href="http://code.google.com/p/google-highly-open-participation-moodle/">Moodle/GHOP contest site</a>.</p></p> EOD; $description = purify_html($description); $this->assertEquals($itemone->get_description(), $description); // TODO fix this so it uses $CFG by default $this->assertEquals($itemone->get_date('U'), 1196412453); // last item $this->assertNotEmpty($feed->get_item(14)); // Past last item $this->assertEmpty($feed->get_item(15)); } /* * Test retrieving a url which doesn't exist */ function test_failurl() { $feed = new moodle_simplepie(); $feed->set_timeout(self::TIMEOUT); $feed->set_feed_url(self::INVALIDURL); @$feed->init(); // We do not want this in php error log. $this->assertNotEmpty($feed->error()); } /* * Test retrieving a url with broken proxy configuration */ function test_failproxy() { global $CFG; $oldproxy = $CFG->proxyhost; $CFG->proxyhost = 'xxxxxxxxxxxxxxx.moodle.org'; $feed = new moodle_simplepie(self::VALIDURL); $this->assertNotEmpty($feed->error()); $this->assertEmpty($feed->get_title()); $CFG->proxyhost = $oldproxy; } /* * Test retrieving a url which sends a redirect to another valid feed */ function test_redirect() { global $CFG; $feed = new moodle_simplepie(); $feed->set_timeout(self::TIMEOUT); $feed->set_feed_url(self::REDIRECTURL); $feed->init(); $this->assertNull($feed->error()); $this->assertEquals($feed->get_title(), 'Moodle News'); $this->assertEquals($feed->get_link(), 'http://moodle.org/mod/forum/view.php?f=1'); } }
Close