Just showing off...

A central forum for general discussion

Moderator: Kaiser Fish XII

Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

I have a bank 90% to running. I have to rebuild 3 subrutines cause I found a REAL way to store data.. (Yay for opendbm!) You should have seen the work around I was using.. messy messy.... As it stands.. when I get these subrutines rewritten... and debug it. I'll have a bank with the following features.Login with password.Checking Balance.Fund Transfering.Error Handling.And on a side note: I made an admin tool for the database setup that lets you add accounts. And check on accounts... I just need to rewrite one of them to be able to add remove and accounts and be password protected. as in ONLY the minitrade can use it. Everything is currently only running in terminal. Once I get the "bank" running in terminal to my satisfaction. I'll present it for beta testing. I'll create 4 accounts and release the passwords .. and tell people... GO.. move funds... check funds... try and screw up in everyway possible and tell me what happens and what you did. So I guess I'm almost done with err... Shireroth Bank 1.0beta. LAter versions will have:Password encryption (I need to talk to my dad on how to do encyption...)Better Error Handling.Bug fixes.So yes.. once I get a working version going.. let us talk.... payment? CGI Bank from Rrakanychan Inc.! Buy now.. while supplies last! Erik Mortis BrookshireCommoner of Alexandretta
BMajeed
Posts: 75
Joined: Thu Jan 15, 2004 3:16 pm

Re: Just showing off...

Post by BMajeed »

There are going to be too many micronational banks. Someone needs to figure out how for the banks to cooperate. Edited by: BMajeed at: 3/20/04 8:40 pm
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

Security... yes.. I need to get a book or two... I need to go home and yoink my dad's perl/cgi books... Erik Mortis BrookshireCommoner of Alexandretta
Austi Scot
Posts: 547
Joined: Sun Jul 14, 2002 5:41 pm

Re: Just showing off...

Post by Austi Scot »

Perhaps the banks of various nations will be able to cooperate by each nation setting up an account in their own bank run by Minister from the other nation.This would be used for currency exchange.
User avatar
Ari Rahikkala
Posts: 4326
Joined: Sun Jan 21, 2001 12:56 pm
Contact:

Re: Just showing off...

Post by Ari Rahikkala »

Quote:Perhaps the banks of various nations will be able to cooperate by each nation setting up an account in their own bank run by Minister from the other nation.If I were to do it, I'd use SOAP... in fact...* ari goes to read http://www.w3.org/TR/2003/REC-so...-20030624/ *Drat... the PHP SOAP extension looks so nice and enticing... but it's a PHP 5 feature and experimental so it'll take months before any server will support it... Do you really believe Project Bluebook revealed EVERYTHING the Army Air Corps knew? Do you know what REALLY happened at Roswell, New Mexico in the late 1940s? Have you even heard about the Men in Black? Do you have any friends who have `missing days'? Do you sleep with your window unlocked?Be seeing you...
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

I'm not even sure if we have PHP support in our server......we do.. up to PHP 4... Erik Mortis BrookshireCommoner of Alexandretta
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

*discos*As of about...3-4pm yesterday.. I got a running bank... running in terminal on my computer. It has:Login with password.Balance checking.Funds transfering.Basic Security. (monitors user input for any non-alphanumeric characters)Error handling where I though to put it.I'll be CGI'ed... errr.. by.. wedness day for test?I'm working on a admin tool to allow for database editing.I'm not sure how I'm going to do transaction logging yet. Erik Mortis BrookshireCommoner of Alexandretta
User avatar
Gman Russell
Posts: 3947
Joined: Thu Aug 23, 2001 3:31 pm
Location: Russell Castle, Mirioth

Re: Just showing off...

Post by Gman Russell »

Your smart man... whew!
Austi Scot
Posts: 547
Joined: Sun Jul 14, 2002 5:41 pm

Re: Just showing off...

Post by Austi Scot »

Great - as Minister of Trade I am excited to find out that I will soon be liberated from the accounting and can concentrate more on what I see as the functions of MiniTrade -- developing the economy.Austi
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

I may have to hold off on testing... It appears I am rather busy this week.... We'll see.. Erik Mortis BrookshireCommoner of Alexandretta
User avatar
Ari Rahikkala
Posts: 4326
Joined: Sun Jan 21, 2001 12:56 pm
Contact:

Re: Just showing off...

Post by Ari Rahikkala »

Throw a copy of the code at me, OK? I do believe I should be able to help out here... Do you really believe Project Bluebook revealed EVERYTHING the Army Air Corps knew? Do you know what REALLY happened at Roswell, New Mexico in the late 1940s? Have you even heard about the Men in Black? Do you have any friends who have `missing days'? Do you sleep with your window unlocked?Be seeing you...
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

Ok... Lemme do a few things first.. I just created 2 new Subrutines that should make it easier to implement the bank. AND.. I can use one to check security at every transaction maknig sure the user is ACCUALLY loged in. and as soon as I figure out exactly how tainting works... put that into effect...Though I think I figure it out... woot. Erik Mortis BrookshireCommoner of Alexandretta
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

ARRRRRRRRRRRRRGGG!!!!!!!!!!!!!!!!!!!!!!!!!I got this program working perfectly in terminal.. but it appears CGI doens't like it... grrrrrrrrrrrrrrr Erik Mortis BrookshireCommoner of Alexandretta
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

sub login&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp my $testpass;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp my $flogic;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp my $userpw;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp my $user;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp my $testpass;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp $userpw = $_[1];&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp $user = $_[0];&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp $flogic = finduser($user);&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp $testpass = getuserpw($user);&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp if ($flogic eq "1")&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp if ($userpw eq $testpass)&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp return 1;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp elsif ($userpw ne $testpass)&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp return 0;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp else&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp print p("Erorr at subrutine login");&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp die "";&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp elsif ($flogic eq "0")&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp return 0;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp else&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp print p("Erorr at subrutine login");&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp die "";&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }Anyone know what's wrong with that? Not that I think the problem is there.. but it seems that after I added this.. things stopped working.. Erik Mortis BrookshireCommoner of Alexandretta
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

OK.. damn it... it's my fault... damn my knowledge of CGI! Erik Mortis BrookshireCommoner of Alexandretta
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

Ok.. now I'm just talking outloud to myself... Ok.. my programing is fine.. it's just I don't know CGI well enough.. so.. don't expect this bank for a while.. if at all at this point.. I got all the parts needed.. But I can't seem to create an interface.. Erik Mortis BrookshireCommoner of Alexandretta
User avatar
Gman Russell
Posts: 3947
Joined: Thu Aug 23, 2001 3:31 pm
Location: Russell Castle, Mirioth

Re: Just showing off...

Post by Gman Russell »

Darn...
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

I can make a terminal program.. but I can't make a web interface that does what I want. I got subrutines to do EVERYTHING I want done... from checking passwords/username to transfering funds..I want to be able to type in a username and password.. his submit.. have it checked and depending on the outcome (true false). either send them back to retry or to proceed to their account. And than from there let them check balance move funds.. ect...But CGI hates me right now..http://www.shireroth.org/cgi-bin/bank2.cgiBank1 got scrapped do to trying a different approach.. Erik Mortis BrookshireCommoner of Alexandretta
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

ps: username erik password mooseBREAKTHROUGH!We're fucked me buckos... We can't access the dbm database when its on the server... why? I got NO clue.Nothing makes sense anymore... I keep checking variable results...I keep testing EVERY subrutine on it's own.. and together in terminal.. and everything works perfectly. So I guess.. I just can't access dbm databases on the server or something. I checked file permisions... all is well...though.. when I run it on server it creates a file with .db as an extension...which isn't on my computer when I run it...This must be the root of my problems.. when I run the program.. it makes 2 new files with .db file extentions... which shouldn't be there....... I HAVE AN IDEA!No... nope... didn't work..WOAH SHIT!SOMETHING WORKED!MUAHAHHHAHAHAHHAHHAHAH YAY DBMWRITE! I knew I made that tool for a reason!Ok.. looks like I HAVE to make the database on server.. makes some sense I guess... So.. umm... 100 checks and 5 hours of work later... I figure out why everything was so fucked up.. now I got to clean up.... Erik Mortis BrookshireCommoner of Alexandretta
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

Maybe I should make my own thread for updates and my ussual rambling... about this project... Erik Mortis BrookshireCommoner of Alexandretta
Alexandra Decens
Posts: 327
Joined: Mon Oct 06, 2003 5:57 pm

Re: Just showing off...

Post by Alexandra Decens »

um.....this is your own thread....you created it for such a purpose...remember....? I have no custom signature...oh wait...
User avatar
Ari Rahikkala
Posts: 4326
Joined: Sun Jan 21, 2001 12:56 pm
Contact:

Re: Just showing off...

Post by Ari Rahikkala »

Quote:Ari.. what's your email...?'tis in my profile. Thus ever was, and thus ever will be. Do you really believe Project Bluebook revealed EVERYTHING the Army Air Corps knew? Do you know what REALLY happened at Roswell, New Mexico in the late 1940s? Have you even heard about the Men in Black? Do you have any friends who have `missing days'? Do you sleep with your window unlocked?Be seeing you...
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

Oh yeah...and....SENT! Erik Mortis BrookshireCommoner of Alexandretta
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

And I'm off!.. I'm making progress again.. but I can't seem to get cgi to pass information back to itself.. How do I assign value to a hidden field.... Ari? Erik Mortis BrookshireCommoner of Alexandretta
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

I really need a proper book on CGI... oh well.. I'm sure my dad has one... and I'm going home this weekend...but.. I figured it out.. we MIGHT have a bank finished.. tonight... I'm not to incredably happy with it.. but.. it'll do. Erik Mortis BrookshireCommoner of Alexandretta
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

It runs.... balance checking.. funds transfers..but's doing cracked out things.. like.. well.. the databases are missing.. DBMwrite.cgi (don't bother looking for it..) can write to it... bank2.cgi can read and write to them.. but.. they aren't were they should be... I can't find them... I'm completely confused... And I'm getting weird subrutine error messages when I try to go back from the fund transfer page after funds are moved... and... You can transfer funds to an account that isn't there... and it'll work.. and the money will vanish.. and... and.... and..... I"M CONFUSED!.. but.. I'm done for the day... Erik Mortis BrookshireCommoner of Alexandretta
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

Ok.. think I figured out the database problem... dont' ask... but I'm certain it ISN"T a problem any more...So.. it appears cgi.pm that is installed on the server doesn't have a function for hashes called "exists" which has cause me to have to remove some error handling features.. but now that I know what the problem is.. I can create a work around. and maybe request the update their perl modules... So.... I should be able to fix all the bugs I complained about last night.... I had some inspiration... Erik Mortis BrookshireCommoner of Alexandretta
Shasta Rana Wanderlust
Posts: 339
Joined: Fri Feb 20, 2004 2:11 pm

Re: Just showing off...

Post by Shasta Rana Wanderlust »

"I had some inspiration...." reads: "I got laid." Oh look, a Thing Of Beauty. Let's blow it up.--Advocate of B0O0/\/\ism : Priest of Horjin--
User avatar
Ari Rahikkala
Posts: 4326
Joined: Sun Jan 21, 2001 12:56 pm
Contact:

Re: Just showing off...

Post by Ari Rahikkala »

Man, you talk about the same things as Lukedu did, only less subtlely. Who'da thunk it?BTW, about the script... since it's in such active development, I won't be able to help with actually getting problems solved until you hit a roadblock (and I can't tell if that's going to happen at all). At this time I might have a look at breaking off some of the common subroutines into a separate modules for cleanliness, though... Do you really believe Project Bluebook revealed EVERYTHING the Army Air Corps knew? Do you know what REALLY happened at Roswell, New Mexico in the late 1940s? Have you even heard about the Men in Black? Do you have any friends who have `missing days'? Do you sleep with your window unlocked?Be seeing you...
Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: Just showing off...

Post by Erik Mortis »

I don't know if I can do that.... Since it's not our server...I never said I got laid... just got inpiration... Erik Mortis BrookshireCommoner of Alexandretta
Post Reply

Return to “General Discussion”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest