Author: gassla
Date: Thu May 31 08:47:10 2007
New Revision: 475
URL: http://svn.gna.org/viewcvs/phplinker?rev=475&view=rev
Log:
rm
Removed:
trunk/www/code.php
trunk/www/login.php
trunk/www/logout.php
trunk/www/passwd.php
Removed: trunk/www/code.php
URL: http://svn.gna.org/viewcvs/phplinker/trunk/www/code.php?rev=474&view=auto
==============================================================================
--- trunk/www/code.php (original)
+++ trunk/www/code.php (removed)
@@ -1,53 +1,0 @@
-<?php
-/*
- This file is part of PHPLinker.
-
- PHPLinker 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 2 of the License, or
- (at your option) any later version.
-
- PHPLinker 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 PHPLinker; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-?>
-<?php
-require("includes/start.php");
-
-if(isset($_SESSION['code']))
- $text = $_SESSION['code']; //on récupére le code à générer
-else {
- header("Location: /passwd");
- exit;
-}
-
-$im = imagecreatefromjpeg("imgs/secret.jpg");
-$id = imagecreatefromjpeg("imgs/secret.jpg");
-$grey = imagecolorallocate($im, 128, 128, 128);
-$black = imagecolorallocate($im, 0, 0, 0);
-$font = "admin/css/themes/main/buttonfont.ttf";
-for($i=0;$i<5;$i++) {
- $angle=mt_rand(10,15);
-
- if(mt_rand(0,1)==1)
- $angle=-$angle;
-
- imagettftext($im, 14, $angle, 11+(20*$i), 21, $grey, $font,
substr($text,$i,1));
- imagettftext($im, 14, $angle, 10+(20*$i), 20, $black, $font,
substr($text,$i,1));
- }
-
-imagecopymerge ( $im, $id, 0, 0, 0, 0, 120, 30, 50 );
-
-header("Content-type: image/png");
-
-imagepng($im);
-imagedestroy($im);
-imagedestroy($id);
-
-?>
Removed: trunk/www/login.php
URL: http://svn.gna.org/viewcvs/phplinker/trunk/www/login.php?rev=474&view=auto
==============================================================================
--- trunk/www/login.php (original)
+++ trunk/www/login.php (removed)
@@ -1,66 +1,0 @@
-<?php
-/*
- This file is part of PHPLinker.
-
- PHPLinker 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 2 of the License, or
- (at your option) any later version.
-
- PHPLinker 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 PHPLinker; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-// $Id$
-?>
-<?php
-
-require("includes/start.php");
-$css_theme = "/admin/css/themes/main/main.css";
-$title="Login";
-$headers[]="<link rel='stylesheet' type='text/css' href=".$css_theme." />";
-
-if(isset($_POST['login_login'],$_POST['login_password'])){
- $data['login']=$_POST['login_login'];
- $data['password']=$_POST['login_password'];
- $User = new User();
- $test = $User->login($data);
- if($test>0) {
- if ( isset($_POST['came_from']) ) {
- header("Location: ".$_POST['came_from']);
- exit;
- } else {
- header("Location: /admin/");
- exit;
- }
- }else{
- header("Location: /login?err=1");
- exit;
- }
- }
-?>
-<?php
-$came_from="/admin/";
-
-if(isset($_GET['came_from']))
- $came_from=$_GET['came_from'];
-
-$err_msg="";
-if(isset($_GET['err'])){
- switch ($_GET['err']){
- case 1:
- $err_msg="<center><span style='color: rgb(255, 0, 0);'>"._('Invalid
Login or password!') . "</span>";
- break;
- }
- }
-
- require("includes/header.php");
- linker_tpl("err",$err_msg);
- linker_tpl("came_from",$came_from);
- require("includes/footer.php");
-?>
Removed: trunk/www/logout.php
URL: http://svn.gna.org/viewcvs/phplinker/trunk/www/logout.php?rev=474&view=auto
==============================================================================
--- trunk/www/logout.php (original)
+++ trunk/www/logout.php (removed)
@@ -1,26 +1,0 @@
-<?php
-/*
- This file is part of PHPLinker.
-
- PHPLinker 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 2 of the License, or
- (at your option) any later version.
-
- PHPLinker 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 PHPLinker; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-?>
-<?php
-require("includes/start.php");
-
-$User = new User();
-$User->logout("/");
-
-?>
Removed: trunk/www/passwd.php
URL: http://svn.gna.org/viewcvs/phplinker/trunk/www/passwd.php?rev=474&view=auto
==============================================================================
--- trunk/www/passwd.php (original)
+++ trunk/www/passwd.php (removed)
@@ -1,82 +1,0 @@
-<?php
-/*
- This file is part of PHPLinker.
-
- PHPLinker 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 2 of the License, or
- (at your option) any later version.
-
- PHPLinker 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 PHPLinker; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-?>
-<?php
-require("includes/start.php");
-$css_theme = "/admin/css/themes/main/main.css";
-$title="Forgot password";
-$headers[]="<link rel='stylesheet' type='text/css' href=".$css_theme." />";
-
-$User = new User();
-$msg="";
-
-$icon_warning="<img src='/imgs/icons/warning' />";
-$icon_ok="";
-
-if( isset($_POST['login']) ){
-
- if($_POST['code']==$_SESSION['code']){
-
- $q = sql_query('die',__FILE__,__LINE__,__FUNCTION__ ,
- "SELECT id , email FROM user WHERE
login='".$_POST['login']."' LIMIT 1");
-
- if( mysql_num_rows($q)==1 ){
-
- list($id_user,$email)=mysql_fetch_array($q);
-
- $pass = $User->randomPass();
-
- if($User->setPass($id_user,$pass)){
- $_SESSION['id_user'] = $id_user;
- if(!$User->sendInfo($id_user,$pass)){
- $msg= $icon_warning. "<font color='red'>".$_SESSION['error'] .
"</font>";
- unset($_SESSION['error']);
-
- }else{
- $msg=$icon_ok." <font color='green'>User information sent to
$email</font>";
- }
- $_SESSION['id_user'] = -1;
- unset($_SESSION['id_user']);
-
- }else{
- $msg=$icon_warning." <font color='red'>Set new password: fails</font>";
- }
-
- }else{
- $msg= $icon_warning." <font color='red'>This login doesn't
exist!</font>";
- }
-
- }else{
- $msg=$icon_warning." <font color='red'>Invalid code</font>";
- }
-}
-linker_tpl("msg",$msg);
-
-$chars = "abBCDEFcdefghijkLmnPQRSTUVWXYpqrstxyz123456789";
-$code="";
-srand((double)microtime()*1000000); // Génération aléatoire du code
-for($i=0; $i<5;$i++){
- $code.= $chars[rand()%strlen($chars)];
- }
-$_SESSION['code'] = $code;
-
-require("includes/header.php");
-require("includes/footer.php");
-
-?>
_______________________________________________
PHPLinker-commits mailing list
[email protected]
https://mail.gna.org/listinfo/phplinker-commits