Forum » Server-Side scripting » osvendetta login
Berichten: 20
avatar
Offline Stuur privebericht
Beste criminalspoint leden ,


ik vroeg me af of iemand een werkende login of oplossing heeft voor de osvendetta source

ik zag hier op het forum dat de source voor php 4 werd gemaakt en daardoor de login niet zou werken
ook werd er een andere login op het forum geplaatst maar het werkt nog steeds niet voor me .
22-02-2012 17:14
Dit topic is 257 keer bekeken door 51 verschillende leden
Reacties op: "osvendetta login"
1 | 2 Volgende pagina
Berichten: 2778
avatar
Offline Stuur privébericht
Neem de login code van de gewone vendetta source, dan zou ie het terug moeten doen.
Waarschijnlijk moet je wel wat aanpassen.
22-02-2012 18:16
Berichten: 20
avatar
Offline Stuur privébericht
ik heb de login uit de alpacino source gehaald en aangepast maar heb nog steeds hetzelfde probleem
23-02-2012 08:33
Regelnasi
Berichten: 1092
avatar
Offline Stuur privébericht
Screenshot/url en code?
23-02-2012 08:38
Berichten: 20
avatar
Offline Stuur privébericht
hieronder de bewerkte versie van de alpacino login

probleem is net zoals met de osvendetta login als je inlogd gaat hij gewoon terug naar de index.php


Code | Selecteer Alles
minimaliseren
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
196
197
<?php
  
include("config.php");
  if(isset(
$_POST['login'],$_POST['password'])) {
    
$dbres mysql_query("SELECT *,UNIX_TIMESTAMP(`online`) AS `online` FROM `users` WHERE `login`='{$_POST['login']}' AND `pass`=MD5('{$_POST['password']}')");
    if((
$data mysql_fetch_object($dbres)) && $data->activated == 1) {
    }
  }
?>
<html>
<head>
<title>Al-pacino.nl</title>
<link rel="stylesheet" type="text/css" href="style.css">
<style type="text/css">
body {
    font-family: Tahoma;
    font-size: 12px;
    color: white;
    background-color: #4E6F81;
    scrollbar-face-color: #404040;
    scrollbar-shadow-color: #202020;
    scrollbar-highlight-color: #808080;
    scrollbar-3dlight-color: #808080;
    scrollbar-darkshadow-color: #202020;
    scrollbar-track-color: #C0C0C0;
    scrollbar-arrow-color: #C0C0C0;
}

a:link                { color: #000000; font-family: Tahoma; font-size: 12px; text-decoration: none; }
a:visited            { color: #000000; font-family: Tahoma; font-size: 12px; text-decoration: none; }
a:active            { color: #000000; font-family: Tahoma; font-size: 12px; text-decoration: none; }
a:hover                { color: #006688; font-family: Tahoma; font-size: 12px; text-decoration: none; }

textarea            { border: 1px solid #000000; background: #e6e6e6; font-size: 12px; font-family: Tahoma; color: black;}
input                { border: 1px solid #000000; background: #e6e6e6; font-size: 12px; font-family: Tahoma; color: black;}
input.normalRadio          { border: 1px solid #000000; background: #000000; font-family: Tahoma; color: black;}
select              { border: 1px solid #000000; background: #999999; font-size: 11px; font-family: Tahoma; color: black;}

table                { color: #000000; font-family: Tahoma; font-size: 12px; border-color: #000000; }
table.main            { background: #0C0C0C; color: #FFFFFF; font-family: Tahoma; font-size: 12px; border-color: #000000;}
table.click            { background: #4E6F81; color: #FFFFFF; font-family: Tahoma; font-size: 12px; border: 1px solid #000000; }
td.subTitle            { background:  url('images/subtitle.jpg'); #D0D0D0; color: #000000; background-image: url(http://www.al-pacino.nl/images/tabelheader.gif); font-family: verdana; font-size: 11px; font-weight: bold; letter-spacing: 5px; padding: 1px; text-align: center; border: 1px solid black }
td.mainTxt            { border: 1px solid #000000; background: #A8A8A8; font-family: verdana; font-size: 12px; padding-left: 5px; }

table.menu            { border: 1px solid #000000; color: #FFFFFF; font-family: Tahoma; font-size: 12px; }
td.menuTitle        { background:  url('images/menu.jpg'); color: #FFFFFF; font-family: Tahoma; font-size: 12px; font-weight: bold; letter-spacing: 5px; padding: 1px }
td.menuLink            { background: #A8A8A8; color: #000000; font-family: Tahoma; font-size: 12px; }
a.menu:link            { color: #D4D4D4; font-family: Tahoma; font-size: 11px; text-decoration: none; cursor: default; width: 120; }
a.menu:visited        { color: #D4D4D4; font-family: Tahoma; font-size: 11px; text-decoration: none; cursor: default; width: 120; }
a.menu:active        { color: #D4D4D4; font-family: Tahoma; font-size: 11px; text-decoration: none; cursor: default; width: 120; }
a.menu:hover        { color: #D4D4D4; font-family: Tahoma; font-size: 11px; text-decoration: none; cursor: default; width: 120; }

body                { scrollbar-base-color: #e6e6e6;
    scrollbar-face-color: #404040;
    scrollbar-shadow-color: #202020;
    scrollbar-highlight-color: #808080;
    scrollbar-3dlight-color: #808080;
    scrollbar-darkshadow-color: #202020;
    scrollbar-track-color: #C0C0C0;
    scrollbar-arrow-color: #C0C0C0; }
</style>
<meta name="keywords" content="Alpacino">
<meta name="language" content="english">
<META name="description" lang="nl" content="Maffia game, word jij een don?">
</head>
<table align="center" width=100%>
<?php /* ------------------------- */
  
if($_GET['x'] == "logout"){
    
session_unset($_SESSION['pass']);
    
session_destroy($_SESSION['login']);
    
session_unset($_SESSION['pass']);
    
session_destroy($_SESSION['login']);
    echo
"<table width=50% align=center>
           <tr><td class=subTitle><b>Uitloggen</b></td></tr>
           <tr><td>&nbsp;</td></tr>
           <tr><td class=mainTxt>U bent nu uitgelogd. Een ogenblik geduld.<br><a href=index.php><b>Wacht niet<b></a></td></tr>"
;
    echo
"<meta http-equiv=Refresh content=3;url=index.php>";
  }
  else if(
$_GET['x'] == "lostpass") {
      if(isset(
$_GET['id'],$_GET['code'])) {
      
$dbres                mysql_query("SELECT `login` FROM `temp` WHERE `id`='{$_GET['id']}' AND `code`='{$_GET['code']}' AND `area`='lostpass'");
      if(
$data mysql_fetch_object($dbres)) {
        
$dbres                mysql_query("SELECT `login`,`email` FROM `users` WHERE `login`='{$data->login}'");
        
$data                mysql_fetch_object($dbres);

        
$newpass            rand(100000,999999);
        
mysql_query("UPDATE `users` SET `pass`=MD5('{$newpass}') WHERE `login`='{$data->login}'");
        
mysql_query("DELETE FROM `temp` WHERE `id`='{$_GET['id']}'");
        
mail($data->email"Al-pacino Password""Je wachtwoord is gereset. Het is nu : $newpass","From: ".al-pacino." <noreply@al-pacino.nl>");
       
// mail($data->email,"al-pacino password","Je wachtwoord is gereset, je kan nu inloggen met: $newpass","From: al-pacino <noreply@al-pacino.nl>n");
        
print "Je nieuwe wachtwoord is verstuurt naar {$data->email}.n";
      }
    }
    else if(isset(
$_POST['email'],$_POST['login'])) {
      
$dbres                mysql_query("SELECT `login`,`email` FROM `users` WHERE `login`='{$_POST['login']}' AND `email`='{$_POST['email']}'AND `activated`=1");
      if(
$data mysql_fetch_object($dbres)) {
        
$code                rand(1000000000,9999999999);
        
mysql_query("INSERT INTO `temp`(`login`,`code`,`area`,`time`) values('{$data->login}',$code,'lostpass',NOW())");
        
$id                mysql_insert_id();
        
mail($data->email,"al-pacino.nl","Vraag je wachtwoord op deze link aan. nhttp://www.al-pacino.nl/login.php?x=lostpass&id=$id&code=$code","From: al-pacino.nl <noreply@al-pacino.nl>");
        print 
"Er is een email met verdere instructies gestuurd naar: {$data->email}.n";
      }
      else
        print 
"De gebruikersnaam komt niet overeen met het e-mailadres.n";
    }

    print <<<ENDHTML
  <tr><td align="center">
    <form method="post">
      <table width="50%" align="center">
        <tr> 
    <td class="subTitle"><b>Wachtwoord Vergeten</b></td>
  </tr>
  <tr><td>&nbsp;&nbsp;</td></tr>
  <tr> 
    <td class="mainTxt"><table width=50%>
        <tr> 
          <td width="49%"><div align="right">Gebruikersnaam:</div></td>
          <td width="2%">&nbsp;</td>
          <td width="49%"><input type="text" name="login"></td>
        </tr>
        <tr> 
          <td width="49%"><div align="right">E-mailadres:</div></td>
          <td width="2%">&nbsp;</td>
          <td width="49%"><input type="text" name="email"></td>
        </tr>
        <tr> 
          <td> <div align="center"> </div></td>
          <td>&nbsp;</td>
          <td><input name="submit" type="submit" style="width: 100" value="Ok"></td>
        </tr>
      </table></table>
    </form></td></tr>
ENDHTML;
  }
  elseif(
$data) {
    
$time time();
if ((
$time $data->online) < 60) { print "Je moet 60 seconden wachten voordat je weer kan inloggen.n"; }  
elseif(
$data->activated == 0) { print "Je acount is nog niet geactiveerd.n"; }
else {
  
$_SESSION['login']        = $_POST['login'];
  
$ip $_SERVER['REMOTE_ADDR'];
  
$dbres mysql_query("SELECT * FROM `multiple` WHERE `ip`='$ip'");
  
$allo mysql_fetch_object($dbres);
  
$allo = ($allo->allo == 1) ? 0;
  
$exi mysql_num_rows(mysql_query("SELECT * FROM `iplog` WHERE `ip`='$ip' AND `login`='{$_POST['login']}'"));
  if (
$exi == 1) { mysql_query("UPDATE `iplog` SET `time`=NOW() WHERE `login`='{$_POST['login']}' AND `ip`='$ip'"); }
  else { 
mysql_query("INSERT INTO `iplog`(`login`,`ip`,`time`,`allo`,`status`) values('{$_POST['login']}','$ip',NOW(),'$allo','{$data->status}')"); }
  echo
"<table width=100% align=center>
           <tr><td class=subTitle><b>Inloggen</b></td></tr>
           <tr><td>&nbsp;</td></tr>
           <tr><td class=mainTxt>U bent nu ingelogd. Een ogenblik geduld.<br><a href=index.php><b>Wacht niet<b></a></td></tr>"
;
    echo
"<meta http-equiv=Refresh content=1;url=index.php>";  
}
}
  else {
      if(isset(
$_POST['login'],$_POST['pass']))
      print 
"Verkeerde gebruikersnaam/wachtwoord.n";

    print <<<ENDHTML
 <tr><td>
    <form method="post">
      <table width="50%" align="center">
        <tr> 
    <td class="subTitle"><b>Inloggen</b></td>
  </tr>
  <tr><td>&nbsp;&nbsp;</td></tr>
  <tr> 
    <td class="mainTxt"><table width=50%>
        <tr> 
          <td width="49%"><div align="center">Gebruikersnaam:</div></td>
          <td width="2%">&nbsp;</td>
          <td width="49%"><input type="text" name="login" maxlength=16 width="150" align="center"></td>
        </tr>
        <tr> 
          <td width="49%"><div align="center">Wachtwoord:</div></td>
          <td width="2%">&nbsp;</td>
          <td width="49%"><input type="password" name="password" maxlength=16 width="150" align="center"></td>
        </tr>
        <tr> 
          <td></td>
          <td></td>
          <td><input type="submit" name="submit" width="150" value="Login"></td>
        </tr>
        <tr> 
          <td colspan="3" align=center> <a href=login.php?x=lostpass>Wachtwoord 
            vergeten?</a></td>
        </tr>
      </table></table>
    </form>
  </td></tr>
ENDHTML;
  }
?>
</table>
</body>
</html>
</table>
23-02-2012 08:53
Berichten: 151
avatar
Offline Stuur privébericht
Ja, je hoort naar index.php toe gestuurd te worden, als je inlogt.
Bovenaan in index.php zit een fout, namelijk exit() of die() zoiets.
Die code moet je verwijderen.
23-02-2012 11:00
Berichten: 20
avatar
Offline Stuur privébericht
inderdaad hij moet naar de index.php maar dan zou je een ander menu moeten zien (wat niet gebeurd )

in index.php vind ik niets zoals knowboard aanheeft
23-02-2012 13:01
Berichten: 693
avatar
Offline Stuur privébericht
Als je naar het bestand index.php gaat zie je gelijk op de tweede regel exit() haal dat weg.
Post het script index.php eens.
23-02-2012 13:41
Berichten: 20
avatar
Offline Stuur privébericht
dit is de osvendetta index.php

Code | Selecteer Alles
minimaliseren
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
<?php include("config.php"); ?>

<html>
<head>
<title> <?php echo $sitename?> </title>
<script>
<!--
if (window!= top)
top.location.href=location.href
// -->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<frameset cols="*,170" frameborder="NO" border="5" framespacing="0">
  <frameset rows="135,*" cols="*" frameborder="NO" border="0" framespacing="0">
    <frame src="upper.php" name="topFrame" target="hoofd" scrolling="NO" noresize >
    <frameset rows="*" cols="170,*" framespacing="0" frameborder="NO" border="0">
     <frame name="inhoud" target="hoofd" src="menu.php">
      <frameset rows="*,25" cols="*" framespacing="0" frameborder="NO" border="0">
        <frame src="home.php" name="hoofd">
        <frame src="copy.php" name="bottomFrame" scrolling="NO" noresize>
      </frameset>
    </frameset>
</frameset>
  <frameset rows="135,*" cols="*" framespacing="0" frameborder="NO" border="0">
    <frame src="clock.php" name="topFrame1" scrolling="NO" noresize >
    <frame src="right.php" target="hoofd" name="rightFrame" noresize>
  </frameset>

</frameset>
<noframes>
    <noframes>
    <body>
  <p>
 Op deze pagina worden frames gebruikt, maar uw browser ondersteunt geen 
frames. download firefox 3 of internet explorer 7 en geniet optimaal van uw surfervaring.
  </p>
    </body>
    </noframes>
    </noframes>
</html>
23-02-2012 14:13
Berichten: 2778
avatar
Offline Stuur privébericht
Pak gewoon de login van de oude vendetta source, al pacino is een andere source daar is osvendetta niet op gebaseerd.

Ik was de developer ervan de fout is erin gekropen toen ik de login pagina onder handen pakten.
23-02-2012 15:03
Berichten: 20
avatar
Offline Stuur privébericht
heb nu de login en zelf de index.php van de aller eerste vendetta genomen en heb nog steeds het zelfde probleem kan dus maar niet inloggen
23-02-2012 20:14
Reageer op: "osvendetta login"
1 | 2 Volgende pagina
Je kan niet reageren omdat je niet bent ingelogd. Inloggen of Aanmelden