IMporting NMDCH users to Ptokax
 

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

IMporting NMDCH users to Ptokax

Started by Snooze, 12 February, 2004, 14:53:08

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Snooze

Hey Guys,

As im switching my primary hub to run on this kewl software, im looking for an easy way to import all regged users to the Ptokax DB.

Any help would be great as its a shitload of users


**Snooze

NightLitch

post a 10 lines of the reg-file so we can see how it's build.

then maybe we can script a converter.
//NL

VidFamne

#2
-

[NL]trucker

Snooze

i got this script in archive wich i used when i switched to pkotax and as i remember it worked but to be sure make a backup first.

remember it is a script.file not a  .lua file

========================================
Sub Main()
 Set fso = CreateObject("Scripting.FileSystemObject")
 Set file = fso.OpenTextFile("C:\PermBan.dat", 2, True)
 If frmHub.lstPermBan.ListCount>0 Then
   For i = 0 To frmHub.lstPermBan.ListCount-1
     file.writeline(CStr(frmHub.lstPermBan.List(i))+"|NMDCHubExport")
   Next
 End If
 file.Close
 Set file = fso.OpenTextFile("C:\RegisteredUsers.dat", 2, True)
 If frmHub.lstOps.ListItems.Count>0 Then
   For  i= 1 To frmHub.lstOps.ListItems.Count
     If frmHub.lstOps.ListItems.Item(i).SubItems(2)="True" Then
       sOp="1"
     Else
       sOp="0"
     End If
     file.writeline(CStr(frmHub.lstOps.ListItems.Item(i))+"|"+CStr(frmHub.lstOps.ListItems.Item(i).SubItems(1))+"|"+sOp)
   Next
 End If
 file.Close
End Sub

========================================

dont ask me how it works; i dont remeber it anymore i just new i had such thing in archive.
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


Snooze

Thanks - ill have a look at it :D

Here is a few line of a backup list:

-----------------
User = (0.5Mbit)wizard$$password$$False
User = (A1)Eagle?$$password$$False
User = (adsl)Hukken(swe)$$password$$False
User = (ADSL)Puggles$$password$$False
User = (Lair-Lurker)$$password$$False
User = @_Warrior_@$$password$$False
User = [-?kullz-]$$password$$True
User = [0.5mbit]dr_elak$$password$$False
User = [0.5mbit]worker$$password$$False
User = [10/10]Jeppe$$password$$False
---------------------------------------------------
should read it like this:

User = Username$$Password$$OP True/False


A script that could convert that to Ptokax would be kewl :D

NightLitch

try using above in the NMDC hub first it is made for converting in NMDCHub.

Otherwise I can make a conveter is is not very hard.

the only thing is that every False will be regged user & True OP will be Operator

you will need to adjust some yourself later.
//NL

Snooze

Ive just tested the script and it works perfect (almost) - just note that it will import all users with the Level 0 and that will be read as ptokax as Master. Other than that its working perfectly and just saved me a few hours of regging those 600+ users

Thanks guys :D

[NL]trucker

Snooze


yw m8

it is always a pleasure to help someone else if possible.
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


SMF spam blocked by CleanTalk