repl.it
@ThomasS1/

Edosphere

PHP Web Server

This is currently the editor for www.edosphere.org

fork
loading
Files
  • index.php
  • article
  • feedback
  • images
  • news
  • policies
  • profile
  • style
  • subject
  • .htaccess
  • 404.php
  • ads.txt
  • globalStyle.css
  • google323710765f935b0b.html
  • login_page.php
  • login.php
  • main.js
  • navbar.php
  • register_page.php
  • register.php
  • sitemap.xml
  • style.css
  • util.js
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
if (strlen($_SERVER['REQUEST_URI']) > 1) {
	include '404.php';
	die();
};
?>
<html>
	<head>
		<!-- Global site tag (gtag.js) - Google Analytics -->
		<script async src="https://www.googletagmanager.com/gtag/js?id=UA-145886974-1"></script>
		<script>
			window.dataLayer = window.dataLayer || [];
			function gtag(){dataLayer.push(arguments);}
			gtag('js', new Date());
			gtag('config', 'UA-145886974-1');
		</script>
    	<script data-ad-client="ca-pub-8236709058020695" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
		<title>Edosphere</title>
		<meta name="description" content="Edosphere - Edocation Specialists. Our aim is to create high-quality articles on a variety of GCSE topics.">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link href="globalStyle.css" rel="stylesheet" type="text/css"/>
		<link href="style.css" rel="stylesheet" type="text/css"/>
		<link rel="icon" href="images/icon.jpg" type="image/icon type">
		<link rel="stylesheet" type="text/css" href="//wpcc.io/lib/1.0.2/cookieconsent.min.css"/><script src="//wpcc.io/lib/1.0.2/cookieconsent.min.js"></script>
		<script>window.addEventListener("load", function(){window.wpcc.init({"colors":{"popup":{"background":"#f6f6f6","text":"#000000","border":"#555555"},"button":{"background":"#E4572E","text":"#ffffff"}},"position":"bottom","pushdown":false,"padding":"small","transparency":"75","fontsize":"large","content":{"href":"https://www.edosphere.org/about.php","button":"OK, I agree"}})});</script>
    	<meta name="keywords" content="edosphere, edosphere org, GCSE history, IGCSE history, history, GCSE articles, GCSE, IGCSE, Language, history, articles, the norman conquest gcse history, world war 2 gcse history, world war 1 gcse history, henry viii gcse history, king john magna carta gcse history, the vietnam war gcse history, gcse history subject, gcse part b, gcse part a, gcse history lessons, gcse history cold war, gcse history, rafael karapetyan, karapetyan, edo, edos, edosp, edosph, edosphe, edospher, edu, edus, edusp, edusph, edusphe, eduspher, edusphere, nice abs, why does rafa have such nice abs, since when did rafa have nice abs">
    	<meta name="google-signin-scope" content="profile email">
    	<meta name="google-signin-client_id" content="443486821861-c398gcspnqtuone3d47e5kii8f56eqf3.apps.googleusercontent.com">
    	<script src="https://apis.google.com/js/platform.js" async defer></script>
      <script>document.getElementsByTagName("html")[0].className += " js";</script>
  	</head>

  	<body>

		<?php
		/* The navbar */
		include 'navbar.php'
		?>

		<script>
			function myFunction(x) {
			x.classList.toggle("change");
			}
		</script>


		<section id='landing'>
			<p style='position:absolute;left:10px;color:#EEE'>Image loading... on slower connections click <a style="color:#008080" href onclick='window.stop();'>here</a></p>
			<ul id='slideshow'>
				<?php
	$dir = new DirectoryIterator("article/subjects");
	foreach ($dir as $fileInfo) {
		if (!$fileInfo->isDot() and $fileInfo->getFilename() =="GCSE History") {
			$subject = $fileInfo->getFilename();
			$subDir = new DirectoryIterator("article/subjects/" . $subject . "/articles");
			foreach ($subDir as $subFileInfo) {
				$article = $subFileInfo->getFilename();
				
				if (!$fileInfo->isDot() and strpos( $article , '.' ) === false) { // Only includes folders
					$output = "<li class='slide' style='display: none;'><a href='/article?subject=" . str_replace(' ', '+', $subject) . "&article=" . str_replace(' ', '+', $article);
					$output = $output . "'><img style='filter: brightness(0.5)' src='article/subjects/" . $subject . "/articles/" . $subFileInfo->getFileName() . "/icon.jpg'><div><h1>";
					$output = $output . $subFileInfo->getFilename();
					$output = $output . "</h1><h3>" . file("article/subjects/" . $subject . "/articles/" . $subFileInfo->getFileName() . "/info.txt")[2] . "<br><br><br></h3></div></a></li>";
					echo $output;
				}
			}
		}
	}
				?>
			</ul>
		</section>
		<script>
	var logoCounter = 0;

	var slides = document.getElementsByClassName("slide");
	var slideIndex = Math.floor(Math.random() * slides.length);  ;

	function showSlides(n) {
	var i;
	var slides = document.getElementsByClassName("slide");

	console.log(slides);

	for (i = 0; i < slides.length; i++) {
		slides[i].style.display = "none"; 
	}
	slides[n].style.display = "block"; 

	setTimeout(function()
		{
			showSlides((n + 1)%slides.length);

		}, 4000);
	}

	showSlides(slideIndex);
		</script>
		<button style="border:none;margin:50px auto;display:block;"><h1>EDOSPHERE, EDOCATION SPECIALISTS</h1></button>
		<div id="welcome">
			<p>
			Welcome to Edosphere. Our aim is to create high-quailty articles on a variety of topics, limited at the moment to IGCSE History.</p><p>Like what you see? Want to provide some feedback? Use the form below to tell us what you think.
			</p>
			
			<script async src="https://cse.google.com/cse.js?cx=006844192042553422864:2advbs0cusy"></script> 
			<div class="gcse-search"></div>
			<div id="social">
				<a href="https://twitter.com/edosphere" class="fa fa-twitter"></a>
				<a href="https://www.instagram.com/edosphere/" class="fa fa-instagram"></a>
        <a href="http://www.christopherhcleung.wordpress.com/" class="fa fa-file"></a>
			</div>
		</div>

		<br><br><br>
		<center>
			<iframe width="640px" height= "1100px" scrolling="no" src= "https://forms.office.com/Pages/ResponsePage.aspx?id=ji79ri1J1EKQ-9CDJtPdypKrWla7Ot9KsFifzEg870BUNTJHUUVSTzVJOUJCTTREMU41TkkwWU5CQy4u&embed=true" frameborder= "0" marginwidth= "0" marginheight= "0" style= "border: none; max-width:100%; max-height:300vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>
		</center>

		<script>
/*
// Defining event listener function
function displayWindowSize(){
	// Get width and height of the window excluding scrollbars
	var wl = document.documentElement.clientWidth;
	var hl = document.documentElement.clientHeight;

	// Display result inside a div element
	//console.log( "Width: " + wl + ", " + "Height: " + hl);

	//document.getElementById("prideImg").width=wl/2 - 40;
	document.getElementById("prideButton").width=wl/2 - 40;
}
// Attaching the event listener function to window's resize event
window.addEventListener("resize", displayWindowSize);
displayWindowSize();

Attach window listening function to window's resize event oto increase the responsiveness of the website 
*/
		</script>

		<a href='#' style="background:#555;color:#EEE;text-decoration:none;margin:20px auto;display:block;text-align:center;width:100px;padding:10px;">Back to Top</button>
		<script src="http://www.edosphere.org/util.js"></script> 
		<script src="http://www.edosphere.org/main.js"></script>
		<a href="#" class="cd-top text-replace js-cd-top">Top</a>
		<div class="demo-avd demo-avd-cf demo-avd-cf--top-mb demo-avd--light js-demo-avd" style="bottom: 30px; left: 30px; top: auto;"></div>

	</body>
</html>

?