Ignore:
Timestamp:
11/17/09 18:07:41 (10 years ago)
Author:
Eric
Message:

[Register_FluxBB]

  • Using sha1 hash instead of md5 for password hashing in FluxBB because FluxBB uses prior sha1 hash and md5 only in last sentence.
  • Escaping all characters in login names and be able to retreive them without slashes - FluxBB does not allow this so Piwigo's user names with escaped characters will not been escaped in FluxBB (ie : "it's" in Piwigo will be "It\'s" in FluxBB)
  • Code refactoring
  • Full HTML 4.0 for tpl
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Register_FluxBB/trunk/maintain.inc.php

    r3738 r4285  
    1717 
    1818  $q = ' 
    19     INSERT INTO '.CONFIG_TABLE.' (param,value,comment) 
    20     VALUES ("Register_FluxBB","FluxBB_;PhpWebGallery;Guest;false;false;true","Parametres Register_FluxBB") 
    21   ;'; 
     19INSERT INTO '.CONFIG_TABLE.' (param,value,comment) 
     20VALUES ("Register_FluxBB","FluxBB_;PhpWebGallery;Guest;false;false;true","Parametres Register_FluxBB") 
     21;'; 
    2222     
    2323  pwg_query($q); 
    2424   
    25         $q = " 
    26     CREATE TABLE IF NOT EXISTS ".Register_FluxBB_ID_TABLE." ( 
    27       id_user_pwg smallint(5) NOT NULL default '0', 
    28       id_user_FluxBB int(10) NOT NULL default '0', 
    29       PRIMARY KEY  (id_user_pwg), 
    30       KEY id_user_pwg (id_user_pwg, id_user_FluxBB) 
    31     ) 
    32   ;"; 
     25  $q = " 
     26CREATE TABLE IF NOT EXISTS ".Register_FluxBB_ID_TABLE." ( 
     27  id_user_pwg smallint(5) NOT NULL default '0', 
     28  id_user_FluxBB int(10) NOT NULL default '0', 
     29PRIMARY KEY  (id_user_pwg), 
     30  KEY id_user_pwg (id_user_pwg, id_user_FluxBB) 
     31) 
     32;"; 
    3333 
    3434  pwg_query($q); 
     
    4848  { 
    4949    $q = ' 
    50       DELETE FROM '.CONFIG_TABLE.' 
    51       WHERE param="Register_FluxBB" LIMIT 1 
    52     ;'; 
     50DELETE FROM '.CONFIG_TABLE.' 
     51WHERE param="Register_FluxBB" LIMIT 1 
     52;'; 
    5353 
    5454    pwg_query($q); 
     
    5959 
    6060} 
    61  
    6261?> 
Note: See TracChangeset for help on using the changeset viewer.