repl.it
@tsimpson1379/

Edosphere

PHP Web Server

This is currently the editor for www.edosphere.org

fork
loading
Files
  • index.php
  • article
  • images
  • newContactAndPolicies
  • news
  • profile
  • subject
  • about.php
  • globalStyle.css
  • google323710765f935b0b.html
  • login_page.php
  • login.php
  • navbar.php
  • news.php
  • register_page.php
  • register.php
  • script.js
  • sitemap.xml
  • style.css
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<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>
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
		<title>Edosphere</title>
		<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>

  </head>


  <body>

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

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


          <section id='landing'>
              <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);

  function counterIncrement() {
    logoCounter=logoCounter + 1;
    if (logoCounter == 69) {
      window.location.replace("http://p.edosphere.org");
    }
  }

  </script>
  <br><br><br>

  <center>
  <div id="pride">
    <!--<img src="images/icon.jpg" id="prideImg">-->
    <button onclick="counterIncrement()" style="border: none;" id="prideButton"><h1 style="float:right;">EDOSPHERE, EDOCATION SPECIALISTS</h1></button>
  </div>
  </center>
  <br><br><br>
  <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><br>
    <!--<div class="g-signin2" data-onsuccess="onSignIn" data-theme="dark" style="float:center"></div>
      <script>
        function onSignIn(googleUser) {
          // Useful data for your client-side scripts:
          var profile = googleUser.getBasicProfile();
          console.log("ID: " + profile.getId()); // Don't send this directly to your server!
          console.log('Full Name: ' + profile.getName());
          console.log('Given Name: ' + profile.getGivenName());
          console.log('Family Name: ' + profile.getFamilyName());
          console.log("Image URL: " + profile.getImageUrl());
          console.log("Email: " + profile.getEmail());

          // The ID token you need to pass to your backend:
          var id_token = googleUser.getAuthResponse().id_token;
          console.log("ID Token: " + id_token);
        }
      </script>
      <a href="#" onclick="signOut();">Sign out</a>-->
      ¦<br>
      ˅<br>

      

  </center>
  </div>
  </center>
  </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();

  </script> 
          </div>
        </div>
      </div>
      </div>
    </div>

<script>
function topFunction() {
	  document.body.scrollTop = 0; // For Safari
  document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}
</script>

<center><button onclick="topFunction()" id="myBtn" title="Go to top">Back to Top</button><center><br>

 </body>
</html>

?