Web registration
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Web registration

Started by nathas, 08 November, 2003, 11:24:39

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nathas

I would like to create a private hub, with the option for registering via web.
Then approve, and than user can enter... Do you have any idea?
Maybe use MySQL database as backend, but CSV is a solution too.

matrix1

I made a web reg program that only uses PHP.

WHR-1.2.03.zip

Psycho_Chihuahua

QuoteI made a web reg program that only uses PHP

Is it possible to alter the website for the Hub Admins? So that ists also possible to delete User's, see the banlists and all registered Users and stuff or that nature?

What would i have to change in the script itself and what in the php files?


Pls help me on this one
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

Psycho_Chihuahua

#3
be able to delete Users as well. I'm thinking of using it as an Admin Control Station where one can check the Resource Consumtion of the scripts, add and delete User's and if possible check on how many people r registered in the Hub.

If i have the lua Code i am sure that i can do the PHP part of it.

Edit:

This is the Code i need to be changed:

QuotehubUsers = {}

function readfile(fName)
   local fHandle = openfile(fName, "r")
   if fHandle then local tmp = read(fHandle, "*a") closefile(fHandle) return tmp end
end

function parseUsers()
   local table = {n=0}
   local users = readfile("../temp.dat") assert(users, "parseUsers()")
   gsub(users, "(%S-)|(%C+)|(%d+)%c", function(name, pass, level) tinsert(%table, { sName = name, sPass = pass, iLevel = tonumber(level) }) end)
   return table
end

function updateUsers()
   local tmp = parseUsers()
   foreachi(tmp, function(id, user) %hubUsers[user.sName] = user.iLevel end)
end

function OnTimer()
   local tmp = parseUsers()
   if tmp then foreachi(tmp, function(id, user)
      if not hubUsers[user.sName] then AddRegUser(user.sName, user.sPass, user.iLevel) end end)
   end updateUsers()
end

function Main()
   updateUsers()
   SetTimer(60*100) StartTimer()
end   -- tezlo


What i need is to be able to delete registered Users as well.
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

matrix1

#4
.

NotRabidWombat

matrix,

You do not validate the user name and password. So a malicious user could easily disrupt the PtokaX user database. Even worse, someone could get Admin access to a hub.

-NotRabidWombat


I like childish behavior. Maybe this post will be deleted next.

Psycho_Chihuahua

QuoteOriginally posted by NotRabidWombat
matrix,

You do not validate the user name and password. So a malicious user could easily disrupt the PtokaX user database. Even worse, someone could get Admin access to a hub.

-NotRabidWombat


ther's always the possibility to set a Pw on the website, wich is what i do


can anyone help with my question above??
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

SMF spam blocked by CleanTalk