Code: Select all
0.0.1 Config.php created. Layed out tables in config. Outlined status and type.
Created index.php and .htaccess. Created tables in database.
created stockdblib.php Created create/detete_stock().
Stole tranlog.php to become stocklog.php. Updated.
Create stockmenu(). Create menu.php.
Now we can create/delete stock (no page yet) and get log/view trades.
0.0.2 created portfolio.php. added 'log' to all function in stockloglib.php
fleshing out all getters for stockdb.php. Created market.php to see stocks
that are for sale. Will be expanded later.
Made createstock.php for company accounts to use. Just set price and amount.
Moved use of bank_menu() into stock_menu().
Formatting issues on pages fixed.
0.0.3 Set up market so that each entry is a form that can be used to buy a stock.
Finished market.php so you can buy stock and it moves the money.
Added stock mod version number to menu.
get_market_stock_list() ignores the user's stocks.
add_stock() checks for stocks that are the same and just increases them.
alter_stock_quantity() created to help with this. (ie, it does it).
Created trade_stock() for market.php in stockdblib.php. (1 error messege haiku)
Fixed problems in stocklog() and stockloglib.php.
Fixed/renamed log_stock_trade(): wasn't logging company.
0.0.4 Removed bank_menu() from stock menu. Added link back to bank.
Removed 'cost' from the stock table. Updated pages.
Market moves stock, THEN moves money now.
0.1.0 Added stockhtmllib.php with status select in it.
Added alter_stock_status() to stockdblib.php.
Portfolio page lets you change the status/price of a stock you own. (i.e. sell)
All basic functionality now complete.