Ct4 website

Results 1 to 11 of 11
  1. #1
    Apprentice orphen99 is offline
    MemberRank
    Apr 2018 Join Date
    7Posts

    Ct4 website

    Greetings, Before anything else i would like to apologize to all moderators. I didn't know that it isn't allowed to post deals regarding real money here.So regarding my problem, I need help on running Cabal Toolz Website (CT4). Does anyone managed to make it work on EP8 including the Admin Panel? If yes, I am asking for your help. You can reply to this thread or send me direct messages.If someone has a ready made database that will work on this website, It would be a great help!I will be waiting for your replies. Thank you so much!


  2. #2
    0x1F0FFF TanGzkie is offline
    MemberRank
    Sep 2008 Join Date
    loc => {p => o}Location
    987Posts

    Re: Ct4 website

    Quote Originally Posted by orphen99 View Post
    Greetings, Before anything else i would like to apologize to all moderators. I didn't know that it isn't allowed to post deals regarding real money here.So regarding my problem, I need help on running Cabal Toolz Website (CT4). Does anyone managed to make it work on EP8 including the Admin Panel? If yes, I am asking for your help. You can reply to this thread or send me direct messages.If someone has a ready made database that will work on this website, It would be a great help!I will be waiting for your replies. Thank you so much!
    Hello @orphen99 !... there is a way but you must know the basics required knowledge of Programming like php,jquery, and also the MSSQL ..
    , just take some time to read the functionality of CT4 :) and im sure you can easily re'code the whole CT4 web... and dont forget to share it here :) ..

  3. #3
    Apprentice orphen99 is offline
    MemberRank
    Apr 2018 Join Date
    7Posts

    Re: Ct4 website

    Someone can help me?

  4. #4
    0x1F0FFF TanGzkie is offline
    MemberRank
    Sep 2008 Join Date
    loc => {p => o}Location
    987Posts

    Re: Ct4 website

    Quote Originally Posted by orphen99 View Post
    Someone can help me?
    Did you manage to connect to database ? ....
    i help you but first post the progress where you're problem is...

    if you dont know how to connect to database find this folder :
    i want you to familiarize 1st the backend folder.
    CabalToolz_v4\backend\includes\adodb5\adodb.inc.php <-- open this with notepad++or any php editor then find this line at count 575:
    PHP Code:
    function PConnect($argHostname ""$argUsername ""$argPassword ""$argDatabaseName ""$forceNew false) ; 
    This line is the connection that gest the function PConnect .
    PHP Code:
    $rs $db->PConnect($_config['db_host'], $_config['db_user'], $_config['db_pass'], $_config['DB1']) or die("Unable to connect!"); 
    Here is the Config File
    THEN YOU CAN GO TO THIS Backend/Config.php at line 7 to 10 : EDIT THIS
    PHP Code:
    $_config['db_type']                     = 'MSSQL';
    $_config['db_host']                     = "127.0.0.1";
    $_config['db_user']                     = 'sa';
    $_config['db_pass']                     = 'yoursqlpassword';

    $_config['DB1']                     = "ACCOUNT";
    $_config['DB2']                     = "GAMEDB"; <-ep2  "SERVER01" <-- ep8
    $_config
    ['DB3']                     = "CABALCASH"
    This line you have to edit LINUX CONFIGS
    PHP Code:
    $_config['ssh_user'] = 'root';
    $_config['ssh_ip'] = '1';
    $_config['ssh_pass'] = '';
    $_config['service_id'] = '09';
    $_config['service'] = array(
    '10'=>array('Tierra Gloriosa(NW)',100),
    '01'=>array('Channel 1(Normal) ',100),
    '02'=>array('Channel 2(Hardcore) ',100),
    '04'=>array('Channel 3(Special)',100),
    ); 
    AND THE QUERY OPEN MSSQL THEN EXECUTE THIS or press "F5"

    PHP Code:
    USE [SERVER01]
    GO

    ALTER TABLE 
    [dbo].[cabal_character_tableADD  Resets int NOT NULL DEFAULT((0))
    GO



    USE [CabalCash]
    GO

    /****** Object:  Table [dbo].[WebShop]    Script Date: 11/11/2012 12:50:13 ******/
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO

    SET ANSI_PADDING ON
    GO

    CREATE TABLE 
    [dbo].[WebShop](
        [
    ID] [intIDENTITY(1,1NOT NULL,
        [
    Name] [varchar](50NOT NULL,
        [
    Description] [varchar](200NOT NULL,
        [
    ItemIdx] [intNOT NULL,
        [
    Options] [intNOT NULL,
        [
    Image] [varchar](200NOT NULL,
        [
    Category] [intNOT NULL,
        [
    Available] [intNOT NULL,
        [
    TimeLimit] [intNOT NULL,
        [
    Total] [intNOT NULL,
        [
    VALUE] [intNOT NULL,
        [
    Cash] [intNULL,
        [
    Alz] [intNULL
    ON [PRIMARY]

    GO

    SET ANSI_PADDING OFF
    GO

    ALTER TABLE 
    [dbo].[WebShopADD  CONSTRAINT [DF_WebShop_Total]  DEFAULT ((0)) FOR [Total]
    GO

    ALTER TABLE 
    [dbo].[WebShopADD  CONSTRAINT [DF_WebShop_VALUE]  DEFAULT ((0)) FOR [VALUE]
    GO


    USE [CabalCash]
    GO

    /****** Object:  Table [dbo].[WebShop_Category]    Script Date: 11/11/2012 12:50:51 ******/
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO

    CREATE TABLE 
    [dbo].[WebShop_Category](
        [
    ID] [smallintIDENTITY(1,1NOT NULL,
        [
    Category] [nvarchar](50NOT NULL,
        [
    Access] [smallintNOT NULL
    ON [PRIMARY]

    GO


    USE [CabalCash]
    GO

    /****** Object:  Table [dbo].[toolz_vote]    Script Date: 11/11/2012 12:51:06 ******/
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO

    CREATE TABLE 
    [dbo].[toolz_vote](
        [
    id] [intIDENTITY(1,1NOT NULL,
        [
    userid] [nchar](10NOT NULL,
        [
    votedata] [textNULL,
     
    CONSTRAINT [PK_mutoolzPRIMARY KEY CLUSTERED 
    (
        [
    useridASC
    )WITH (PAD_INDEX  OFFSTATISTICS_NORECOMPUTE  OFFIGNORE_DUP_KEY OFFALLOW_ROW_LOCKS  ONALLOW_PAGE_LOCKS  ONON [PRIMARY]
    ON [PRIMARYTEXTIMAGE_ON [PRIMARY]

    GO 

    go to Backend/Login.php
    find this line 90 :
    PHP Code:
        $db->Execute('update '.$_config['DB1'].'.dbo.cabal_auth_table set EventTag = 1 where upper(ID) = ?',$user_auth->username); 
    execute this query.
    PHP Code:
    USE [SERVER01]
    GO

    ALTER TABLE 
    [dbo].[cabal_character_tableADD  EventTag int NOT NULL DEFAULT((0))
    GO 

    AS far as i read the functionality ... i think that is a good way to start... :)
    if you have errors just post it here... :)
    Last edited by TanGzkie; 12-08-19 at 11:39 AM. Reason: For possible start

  5. #5
    Account Upgraded | Title Enabled! Myster Dev is offline
    MemberRank
    Apr 2014 Join Date
    127.0.0.1Location
    746Posts

    Re: Ct4 website

    Quote Originally Posted by TanGzkie View Post
    Did you manage to connect to database ? ....
    i help you but first post the progress where you're problem is...

    if you dont know how to connect to database find this folder :
    i want you to familiarize 1st the backend folder.
    CabalToolz_v4\backend\includes\adodb5\adodb.inc.php <-- open this with notepad++or any php editor then find this line at count 575:
    PHP Code:
    function PConnect($argHostname ""$argUsername ""$argPassword ""$argDatabaseName ""$forceNew false) ; 
    This line is the connection that gest the function PConnect .
    PHP Code:
    $rs $db->PConnect($_config['db_host'], $_config['db_user'], $_config['db_pass'], $_config['DB1']) or die("Unable to connect!"); 
    Here is the Config File
    THEN YOU CAN GO TO THIS Backend/Config.php at line 7 to 10 : EDIT THIS
    PHP Code:
    $_config['db_type']                     = 'MSSQL';
    $_config['db_host']                     = "127.0.0.1";
    $_config['db_user']                     = 'sa';
    $_config['db_pass']                     = 'yoursqlpassword';

    $_config['DB1']                     = "ACCOUNT";
    $_config['DB2']                     = "GAMEDB"; <-ep2  "SERVER01" <-- ep8
    $_config
    ['DB3']                     = "CABALCASH"
    This line you have to edit LINUX CONFIGS
    PHP Code:
    $_config['ssh_user'] = 'root';
    $_config['ssh_ip'] = '1';
    $_config['ssh_pass'] = '';
    $_config['service_id'] = '09';
    $_config['service'] = array(
    '10'=>array('Tierra Gloriosa(NW)',100),
    '01'=>array('Channel 1(Normal) ',100),
    '02'=>array('Channel 2(Hardcore) ',100),
    '04'=>array('Channel 3(Special)',100),
    ); 
    AND THE QUERY OPEN MSSQL THEN EXECUTE THIS or press "F5"

    PHP Code:
    USE [SERVER01]
    GO

    ALTER TABLE 
    [dbo].[cabal_character_tableADD  Resets int NOT NULL DEFAULT((0))
    GO



    USE [CabalCash]
    GO

    /****** Object:  Table [dbo].[WebShop]    Script Date: 11/11/2012 12:50:13 ******/
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO

    SET ANSI_PADDING ON
    GO

    CREATE TABLE 
    [dbo].[WebShop](
        [
    ID] [intIDENTITY(1,1NOT NULL,
        [
    Name] [varchar](50NOT NULL,
        [
    Description] [varchar](200NOT NULL,
        [
    ItemIdx] [intNOT NULL,
        [
    Options] [intNOT NULL,
        [
    Image] [varchar](200NOT NULL,
        [
    Category] [intNOT NULL,
        [
    Available] [intNOT NULL,
        [
    TimeLimit] [intNOT NULL,
        [
    Total] [intNOT NULL,
        [
    VALUE] [intNOT NULL,
        [
    Cash] [intNULL,
        [
    Alz] [intNULL
    ON [PRIMARY]

    GO

    SET ANSI_PADDING OFF
    GO

    ALTER TABLE 
    [dbo].[WebShopADD  CONSTRAINT [DF_WebShop_Total]  DEFAULT ((0)) FOR [Total]
    GO

    ALTER TABLE 
    [dbo].[WebShopADD  CONSTRAINT [DF_WebShop_VALUE]  DEFAULT ((0)) FOR [VALUE]
    GO


    USE [CabalCash]
    GO

    /****** Object:  Table [dbo].[WebShop_Category]    Script Date: 11/11/2012 12:50:51 ******/
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO

    CREATE TABLE 
    [dbo].[WebShop_Category](
        [
    ID] [smallintIDENTITY(1,1NOT NULL,
        [
    Category] [nvarchar](50NOT NULL,
        [
    Access] [smallintNOT NULL
    ON [PRIMARY]

    GO


    USE [CabalCash]
    GO

    /****** Object:  Table [dbo].[toolz_vote]    Script Date: 11/11/2012 12:51:06 ******/
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO

    CREATE TABLE 
    [dbo].[toolz_vote](
        [
    id] [intIDENTITY(1,1NOT NULL,
        [
    userid] [nchar](10NOT NULL,
        [
    votedata] [textNULL,
     
    CONSTRAINT [PK_mutoolzPRIMARY KEY CLUSTERED 
    (
        [
    useridASC
    )WITH (PAD_INDEX  OFFSTATISTICS_NORECOMPUTE  OFFIGNORE_DUP_KEY OFFALLOW_ROW_LOCKS  ONALLOW_PAGE_LOCKS  ONON [PRIMARY]
    ON [PRIMARYTEXTIMAGE_ON [PRIMARY]

    GO 

    go to Backend/Login.php
    find this line 90 :
    PHP Code:
        $db->Execute('update '.$_config['DB1'].'.dbo.cabal_auth_table set EventTag = 1 where upper(ID) = ?',$user_auth->username); 
    execute this query.
    PHP Code:
    USE [SERVER01]
    GO

    ALTER TABLE 
    [dbo].[cabal_character_tableADD  EventTag int NOT NULL DEFAULT((0))
    GO 

    AS far as i read the functionality ... i think that is a good way to start... :)
    if you have errors just post it here... :)
    this rewrite works with all the features in ct4 like the reset system?

  6. #6
    0x1F0FFF TanGzkie is offline
    MemberRank
    Sep 2008 Join Date
    loc => {p => o}Location
    987Posts

    Re: Ct4 website

    We can do fixing :) by posting errors in this thread ....
    try and error is the best way to FIX CT4 :)



    -----
    i guess it will work !

    Take a look at backend/cabal/user.heroes.php

    in this case 'reset':
    i read the code .. but only six Character supported...
    backend/cabal/define/

    //LEVEL RESET
    PHP Code:
    $_config['ucp_lvl_allow'] = true;         // true of false
    $_config['ucp_lvl_level'] = 160;
    $_config['ucp_lvl_level2'] = 100;
    $_config['ucp_lvl_payment'] = 50000000;
    $_config['ucp_lvl_payment2'] = 50000000;
    $_config['ucp_lvl_inv_check'] = false;         // if true will check if inventory and equipments are empty
    $_config['ucp_lvl_keep_stat'] = false;         // if true keep stats is enabled
    $_config['ucp_lvl_keep_stat2'] = true;         // if true keep stats is enabled
    $_config['ucp_lvl_bonus'] = 200;         // Bonus per reset
    $_config['ucp_lvl_free'] = 0;             // free per reset
    $_config['ucp_lvl_magic_clear'] = false;     // if true will remove magic list
    $_config['ucp_lvl_limit'] = 100;         // Limit number for resets
    $_config['ucp_lvl_limit2'] = 999;         // Limit number for gresets
    $_config['ucp_lvl_col'] = 'RESETS';         // name of the column
    $_config['ucp_lvl_col2'] ='GRESETS';    // name of the column
    $_config['start_level'] = 1;
    $_config['chg_payment'] = 0;
    $_config['payment_cash_reset'] = 0
    $_config['ucp_lvl_col2'] ='GRESETS';// name of the column

    you should alter a new MSSQL CODE :
    Code:
    USE [SERVER01]
    GO
    ALTER TABLE [dbo].[cabal_character_table] ADD  GRESETS int NOT NULL DEFAULT((0))
    GO
    notice that i highlighted color of GRESETS..

    user.heroes.php and define.php ..

    under define.php

    //items
    PHP Code:
    _config['craft_level'] = array(9=>'3%',10=>'4%',11=>'5%',12=>'6%',13=>'8%',14=>'9%',15=>'10%');
        
    $_config['craft_title'] = array(
                                        
    1=>"of Desctruction (Attak)",
                                        
    2=>"of Destruction(Magic)",
                                        
    3=>"of Destruction (Attack rate)",
                                        
    4=>"of Deathblow (Dmg)",
                                        
    5=>"of Deathblow (Rate)",
                                        
    6=>"of Luck (2slot item drop)",
                                        
    7=>"of Adept (Skill EXP)",
                                        
    8=>"of Amp (Sword)",
                                        
    9=>"of Amp (Magic)"
                                    
    ); 
    Need to re-write this.
    Last edited by TanGzkie; 13-08-19 at 04:57 AM.

  7. #7
    Account Upgraded | Title Enabled! Myster Dev is offline
    MemberRank
    Apr 2014 Join Date
    127.0.0.1Location
    746Posts

    Re: Ct4 website

    Registration is working but it doesn't let me logged in.

  8. #8
    0x1F0FFF TanGzkie is offline
    MemberRank
    Sep 2008 Join Date
    loc => {p => o}Location
    987Posts

    Re: Ct4 website

    Quote Originally Posted by Myster Dev View Post
    Registration is working but it doesn't let me logged in.
    Goto : backend/cabal/define.php change it to
    PHP Code:
    define('_USER_LOGIN_MD5','exec '.$_config['DB1'].'.dbo.cabal_user_auth ?,?'); 
    This:
    PHP Code:
    define('_USER_LOGIN_MD5','exec '.$_config['DB1'].'.dbo.cabal_sp_auth ?,?'); 
    on EP8 this --> .dbo.cabal_user_auth (SP) doesnt exists this works for EP2

    ---------------------

    PHP Code:
    SELECT FROM dbo.cabal_auth_table WHERE PWDCOMPARE('your password'Password) = 
    this is the code to authenticate the login EP8

    ENCRYPT PASSWORD
    PHP Code:
     PWDENCRYPT 
    https://docs.microsoft.com/en-us/sql...ql-server-2017
    uses TRUE OR FALSE
    PHP Code:
    PWDCOMPARE 
    https://docs.microsoft.com/en-us/sql...ql-server-2017
    EXECUTE THIS :
    PHP Code:
    SELECT FROM dbo.cabal_auth_table WHERE PWDCOMPARE('your password'Password) = 
    Last edited by TanGzkie; 13-08-19 at 08:35 AM.

  9. #9
    Apprentice geiflow is offline
    MemberRank
    Aug 2016 Join Date
    10Posts

    Re: Ct4 website

    Quote Originally Posted by TanGzkie View Post
    Did you manage to connect to database ? ....
    i help you but first post the progress where you're problem is...

    if you dont know how to connect to database find this folder :
    i want you to familiarize 1st the backend folder.
    CabalToolz_v4\backend\includes\adodb5\adodb.inc.php <-- open this with notepad++or any php editor then find this line at count 575:
    PHP Code:
    function PConnect($argHostname ""$argUsername ""$argPassword ""$argDatabaseName ""$forceNew false) ; 
    This line is the connection that gest the function PConnect .
    PHP Code:
    $rs $db->PConnect($_config['db_host'], $_config['db_user'], $_config['db_pass'], $_config['DB1']) or die("Unable to connect!"); 
    Here is the Config File
    THEN YOU CAN GO TO THIS Backend/Config.php at line 7 to 10 : EDIT THIS
    PHP Code:
    $_config['db_type']                     = 'MSSQL';
    $_config['db_host']                     = "127.0.0.1";
    $_config['db_user']                     = 'sa';
    $_config['db_pass']                     = 'yoursqlpassword';

    $_config['DB1']                     = "ACCOUNT";
    $_config['DB2']                     = "GAMEDB"; <-ep2  "SERVER01" <-- ep8
    $_config
    ['DB3']                     = "CABALCASH"
    This line you have to edit LINUX CONFIGS
    PHP Code:
    $_config['ssh_user'] = 'root';
    $_config['ssh_ip'] = '1';
    $_config['ssh_pass'] = '';
    $_config['service_id'] = '09';
    $_config['service'] = array(
    '10'=>array('Tierra Gloriosa(NW)',100),
    '01'=>array('Channel 1(Normal) ',100),
    '02'=>array('Channel 2(Hardcore) ',100),
    '04'=>array('Channel 3(Special)',100),
    ); 
    AND THE QUERY OPEN MSSQL THEN EXECUTE THIS or press "F5"

    PHP Code:
    USE [SERVER01]
    GO

    ALTER TABLE 
    [dbo].[cabal_character_tableADD  Resets int NOT NULL DEFAULT((0))
    GO



    USE [CabalCash]
    GO

    /****** Object:  Table [dbo].[WebShop]    Script Date: 11/11/2012 12:50:13 ******/
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO

    SET ANSI_PADDING ON
    GO

    CREATE TABLE 
    [dbo].[WebShop](
        [
    ID] [intIDENTITY(1,1NOT NULL,
        [
    Name] [varchar](50NOT NULL,
        [
    Description] [varchar](200NOT NULL,
        [
    ItemIdx] [intNOT NULL,
        [
    Options] [intNOT NULL,
        [
    Image] [varchar](200NOT NULL,
        [
    Category] [intNOT NULL,
        [
    Available] [intNOT NULL,
        [
    TimeLimit] [intNOT NULL,
        [
    Total] [intNOT NULL,
        [
    VALUE] [intNOT NULL,
        [
    Cash] [intNULL,
        [
    Alz] [intNULL
    ON [PRIMARY]

    GO

    SET ANSI_PADDING OFF
    GO

    ALTER TABLE 
    [dbo].[WebShopADD  CONSTRAINT [DF_WebShop_Total]  DEFAULT ((0)) FOR [Total]
    GO

    ALTER TABLE 
    [dbo].[WebShopADD  CONSTRAINT [DF_WebShop_VALUE]  DEFAULT ((0)) FOR [VALUE]
    GO


    USE [CabalCash]
    GO

    /****** Object:  Table [dbo].[WebShop_Category]    Script Date: 11/11/2012 12:50:51 ******/
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO

    CREATE TABLE 
    [dbo].[WebShop_Category](
        [
    ID] [smallintIDENTITY(1,1NOT NULL,
        [
    Category] [nvarchar](50NOT NULL,
        [
    Access] [smallintNOT NULL
    ON [PRIMARY]

    GO


    USE [CabalCash]
    GO

    /****** Object:  Table [dbo].[toolz_vote]    Script Date: 11/11/2012 12:51:06 ******/
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO

    CREATE TABLE 
    [dbo].[toolz_vote](
        [
    id] [intIDENTITY(1,1NOT NULL,
        [
    userid] [nchar](10NOT NULL,
        [
    votedata] [textNULL,
     
    CONSTRAINT [PK_mutoolzPRIMARY KEY CLUSTERED 
    (
        [
    useridASC
    )WITH (PAD_INDEX  OFFSTATISTICS_NORECOMPUTE  OFFIGNORE_DUP_KEY OFFALLOW_ROW_LOCKS  ONALLOW_PAGE_LOCKS  ONON [PRIMARY]
    ON [PRIMARYTEXTIMAGE_ON [PRIMARY]

    GO 

    go to Backend/Login.php
    find this line 90 :
    PHP Code:
        $db->Execute('update '.$_config['DB1'].'.dbo.cabal_auth_table set EventTag = 1 where upper(ID) = ?',$user_auth->username); 
    execute this query.
    PHP Code:
    USE [SERVER01]
    GO

    ALTER TABLE 
    [dbo].[cabal_character_tableADD  EventTag int NOT NULL DEFAULT((0))
    GO 

    AS far as i read the functionality ... i think that is a good way to start... :)
    if you have errors just post it here... :)

    I still cant get the site working :( i need help.

  10. #10
    Account Upgraded | Title Enabled! Onplay is offline
    MemberRank
    Jun 2012 Join Date
    495Posts

    Re: Ct4 website

    Pls help upload or share link for backend folder.....

    Thanks.

  11. #11
    Member stavrov1 is offline
    MemberRank
    Apr 2014 Join Date
    58Posts

    Re: Ct4 website

    Pls help upload or share link for backend folder.....

    Thanks.

    would be great



Advertisement