Blame view

account/_signup.php 2.72 KB
42868d70   andryeyev   Создал GIT
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
  <?  // Ïîäêëþ÷åíèå
  	include_once($_SERVER['DOCUMENT_ROOT']."/config/config.php"); 
  	include_once($_SERVER['DOCUMENT_ROOT']."/account/func/func.php");
  
  	// ============================== 
  	// ======== Îáðàáîòêà ===========
  	// ==============================
   
      if(isset($_POST)) { 
      
      	if ((isset($_POST["signup"])) && ($_POST["signup"] == "ok")) { 
              AuthorizationUser($_POST);
          }
          
      }
  	
  	// ============================== 
  	// ========== Âûâîä =============
  	// ==============================
      	
  ?>
  <script type="text/javascript">
      function formSubmit(name){
          document.getElementById(name).submit();
      }
  </script>
      <link rel='stylesheet' href='/css/account.css' type='text/css'/>
  
  	<div class="signup">
      <? if(!isset($_SESSION['user']['id'])) { ?>
  		<div class="col-1"  onclick="ShowHide('index')"></div>
  		<div class="col-2"> 
  		  <form id="form_signup" name="form1" method="POST" id='form_signup' action="">
  		   
  			<label>Email:</label> 
  			<input type="text" name="form[login]">
  
  			<label>Ïàðîëü:</label> 
  			<input type="password" name="form[pass]">
  			
  			<div class="buttons">
  				<input type="hidden" name="signup" value="ok">
  				<div id="ok" onClick="formSubmit('form_signup');"></div>
  				<div id="cancel"></div>
  			</div>
  			
  			</form>
  		</div>
  		<div class="col-3" style="">
  			<span class="remind"><a href="/account/remind/">Âîññòàíîâèòü ïàðîëü</a></span>
  			<span class="noaccount">Íåò ó÷åòíîé çàïèñè?</span>
  			<span class="registration"><a href="/account/registration/">Çàðåãèñòðèðîâàòüñÿ?</a></span>
  			<span class="noaccount">Àâòîðèçîâàòüñÿ ÷åðåç ñîö. ñåòè</span>
  			<div style="margin-top:10px; margin-left:350px;">
  			<table>
  			<tr>
  			<td><span onClick="window.location='http://oauth.vk.com/authorize?client_id=3079859&scope=&redirect_uri=http://extremstyle.ua/social/login-vkontakte.php&response_type=code';" id="login_social_vkontakte" style="padding: 8px 0 10px 30px; cursor:pointer;">&nbsp;</span></td>
  			<td><span onClick="window.location='http://www.facebook.com/dialog/oauth?client_id=389674101114043&redirect_uri=http://extremstyle.ua/social/login-facebook.php&state=1';" id="login_social_facebook" style="padding: 8px 0 10px 30px; cursor:pointer;">&nbsp;</span></td>
  			<td><span onClick="window.location='https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=http%3A%2F%2Fextremstyle.ua%2Fsocial%2Findex2.php&client_id=1065339127035.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fplus.me';" id="login_social_twitter" style="padding: 8px 0 10px 30px; cursor:pointer;">&nbsp;</span></td>
  			</tr>
  			</table>
  			</div>
  		</div>
      <? } else { ?>
              <div class="col-1" onclick="location.href='/account/panel/'"></div>
      <? } ?>
  	</div>