- Joined
- Dec 22, 2009
- Messages
- 958
- Reaction score
- 318
@soultransit, i still recommand you to use mssql driver, cuz if you'll use sqlserv you'll see that you will have some serious problems .
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
Hi I would like to participate I just started today.
My project is running on MS SQLEXPRESS 2008 + IIS 7 + PHP 5.3
Progress:
DB connection (used sqlserv driver for PHP)You must be registered to see links
TO DO LIST:
rewrite db queries to sqlserv
User Login
User Registration
Rankings
Arena
Vote
Web Shop
Backend Administration
@allocen as much as I wanted to use mssql driver on php ver 5.3 they've removed the php_mssql extension and I am using windows 2008 enterprise server and with IIS 7 that is why i can't just add mssql driver to php ext. instead Microsoft uses sqlsrv.
this is the php documentationYou must be registered to see links
found database class library for sqlsrv adodb mssqlnativeYou must be registered to see links
There is already a dll that provide mssql functions on newest xampp version, its named: php_dball.dll. I'm kinda lazy to upload it now, maybe later, but it can be found on google.
Similiar to dblib.dll which uses FreeTDS.
Found it. Documentation and DownloadsYou must be registered to see links
-- =============================================
-- Author: <Soultransit>
-- Create date: <02/21/2013>
-- Description: <Cabal Toolz SQL Username | Password Checker>
-- =============================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE cabal_login_checker @username varchar(50),@password varchar (50)
AS
BEGIN
SET NOCOUNT ON;
SELECT ID, Password FROM Account.dbo.cabal_auth_table
WHERE ID = @user and PWDCOMPARE(@password, Password) = 1
END
GO
exec Account.dbo.cabal_login_checker 'yourusername','yourpassword'
created Stored Procedure to check logins this uses PWDCOMPARE to encrypt passwords. tried to execute this on my SQL query and it returns a row with the correct user. My problem now is trying to implement this on Cabal Toolz.
This is the guide on how to create Stored Proc on SQL 2008
You must be registered to see links
This is the Script:
Code:-- ============================================= -- Author: <Soultransit> -- Create date: <02/21/2013> -- Description: <Cabal Toolz SQL Username | Password Checker> -- ============================================= SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE cabal_login_checker @username varchar(50),@password varchar (50) AS BEGIN SET NOCOUNT ON; SELECT ID, Password FROM Account.dbo.cabal_auth_table WHERE ID = @user and PWDCOMPARE(@password, Password) = 1 END GO
You can now execute this on sql query like this:
Code:[COLOR="#FF0000"]exec Account.dbo.cabal_login_checker 'yourusername','yourpassword'[/COLOR]
If someone has better knowledge on this please pm me. Thanks!
View attachment 124178
If You Want You Could Just Re-Make Chumpy's Simple Reg Page + Webshop...
The Red One Which You Can Create An Account Is Already Out In The Market... :
But Your A Good Kid And Share's His Knowledge,...
If You Want You Could Just Re-Make Chumpy's Simple Reg Page + Webshop...
exec Account.dbo.cabal_tools_registerAccount 'newUsername','newPassword'
Instead of modifying/re-making chumpy's webpage, why not doing it on CT4 which has a better look and easy to modify the frontpage. Besides that even your PC server is offline/down but you can still post announcement/notice at the web host.
I know that one for registering accounts, but this one is different from registering it checks username and the password that is not encrypted.
Code:exec Account.dbo.cabal_tools_registerAccount 'newUsername','newPassword'
What I've created search for "registered" accounts and return row if login is correct
-- =============================================
-- Author: <Soultransit>
-- Create date: <02/21/2013>
-- Description: <Cabal Toolz SQL Username | Password Checker>
-- =============================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE cabal_login_checker [COLOR="#FF0000"]@ID[/COLOR] varchar(50),@password varchar (50)
AS
BEGIN
[COLOR="#FF0000"]DECLARE @ID varchar (50)[/COLOR]
SET NOCOUNT ON;
SELECT ID, Password FROM Account.dbo.cabal_auth_table
WHERE ID = [COLOR="#FF0000"]@ID[/COLOR] and PWDCOMPARE(@password, Password) = 1
END
GO