Get Started. It's Free
or sign up with your email address
YouSearch by Mind Map: YouSearch

1. Script

1.1. index.php

1.1.1. header.php

1.1.1.1. include_once

1.1.1.1.1. 'login/includes/functions.php';

1.1.1.1.2. 'login/includes/db_connect.php';

1.1.1.2. sec_session_start(); $user = htmlentities($_SESSION['username']);

1.1.1.2.1. This checks to see who is log in!

1.1.1.3. if($user) { $sql = "CREATE TABLE IF NOT EXISTS $user ( `id` int NOT NULL AUTO_INCREMENT, `type` varchar(99) NOT NULL, `data` varchar(99) NOT NULL, `value` float NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `date` (`id`) )"; if (!mysqli_query($cone,$sql)) { die('Error: ' . mysqli_error($cone)); }

1.1.1.3.1. This needs to be moved to the registration script

1.1.1.4. $resultsql2 = mysqli_query($cone,"SELECT * FROM ".$user.""); $row2 = mysqli_fetch_array($resultsql2); $porfilepic =$row2[data]; $resultsql2 = "SELECT * FROM stocks WHERE user = '".$user."'"; if (!$resultsql2 = mysqli_query($cons,$resultsql2)) { die('Error: ' . mysqli_error($cons)); } $stocks = mysqli_fetch_array($resultsql2); $stocks = $stocks[value]; $resultsql2 = "SELECT * FROM accounts WHERE user = '".$user."'"; if (!$resultsql2 = mysqli_query($conb,$resultsql2)) { die('Error: ' . mysqli_error($conb)); } $row2 = mysqli_fetch_array($resultsql2); if($row2[balance]) { $balance = $row2[balance]; } else { $resultsql2 = "SELECT * FROM accounts WHERE user = 'Bank'"; if (!$resultsql2 = mysqli_query($conb,$resultsql2)) { die('Error: ' . mysqli_error($conb)); } $bank = mysqli_fetch_array($resultsql2); $newbank = $bank[balance] - 100; $sql="REPLACE INTO accounts (user, balance) VALUES ('Bank', '$newbank')"; $bank = mysqli_query($conb,$sql); echo "add"; $sql="REPLACE INTO accounts (user, balance) VALUES ('$user', '100')"; $bank = mysqli_query($conb,$sql); echo "add";

1.1.1.4.1. This needs to be cleaned

2. Stock market

2.1. Buy Shares

2.1.1. Bid Shares

2.2. Sell Share

2.2.1. Offer Shares

2.3. Dividends

2.3.1. Dividend Account

2.3.1.1. Received

2.3.1.1.1. 2.5% per yC transaction

2.3.1.2. Paid Out

2.3.1.2.1. Dividend Balance / 365 / total amount of shares = amount paid out per share everyday

3. Profiles

3.1. Currency

3.1.1. YouCoins

3.1.1.1. yC

3.1.1.2. yC/k

3.1.2. USD

3.1.3. BitCoins

3.2. Share Price

3.2.1. Last Trade

3.2.2. Current Bid

3.2.3. Current Offer

3.2.4. Stock Charts

3.3. Pictures

3.3.1. Profile pictures

3.3.2. Timeline pictures

3.3.3. Ablem

3.4. Info

3.4.1. Bio

3.4.2. Location

3.4.3. Work

3.4.4. Education

3.4.5. Interests

3.5. Wall Post

3.6. Jobs

3.6.1. Post Work

3.6.2. Do Work

3.7. Store

3.7.1. Items for sale

4. Search

4.1. Search Input

4.1.1. Search Prediction

4.1.1.1. Google Api

4.2. Web

4.2.1. Yahoo Boss Api

4.2.2. 75%

4.2.3. Search Results

4.3. Image

4.3.1. Yahoo Boss Api

4.3.2. 0%

4.4. Video

4.4.1. YouTube

4.4.2. 50%

4.5. 50%

4.6. Info

4.6.1. Wolfram Alpha

4.6.2. 50%

4.7. Maps

4.8. Stocks

4.8.1. Yahoo Stocks

4.9. Apps

5. Pages

5.1. Home

5.2. Search

5.2.1. Web

5.2.2. Videos

5.2.3. Pictures

5.2.4. Info

5.2.5. Stocks

5.2.6. Users

5.2.7. Store

5.3. Users

5.3.1. Trending

5.3.2. Leaders

5.3.3. New

5.3.4. Featured

5.4. Jobs

5.4.1. New Jobs

5.4.2. Categories

5.4.3. Trending

5.4.4. Top Paying

5.5. Store

5.5.1. Trending

5.5.2. Categories

5.6. Stock market

5.6.1. Trending

5.6.2. Best Buy

5.6.3. Last offers

5.7. Profile

5.7.1. Edit

5.8. Bank

5.8.1. Send Funds

5.8.2. Balance

5.8.3. YouCoin Exchange

5.8.3.1. Buy YouCoins

5.8.3.2. Bid YouCoins

5.8.3.3. Sell YouCoins

5.8.3.4. Offer YouCoins

6. Bank

6.1. YouCoin Exchange

6.1.1. Buy YouCoins

6.1.2. Sell YouCoins

6.1.3. Send YouCoins

6.2. Accounts

6.2.1. YouCoins

6.2.1.1. Dividends

6.2.1.2. Portfolio

6.2.1.3. Account

6.2.2. USD

7. Jobs

7.1. Title

7.2. Description

7.3. Openings

7.4. Payment

7.4.1. yC

7.4.2. BitCoins

7.4.3. USD

7.5. Catagory

7.6. Enbed

7.6.1. URL

7.6.2. Facebook

7.6.3. Twitter

7.6.4. G+

7.6.5. HTML

8. Store

8.1. Title

8.2. Description

8.3. Pictures

8.4. Payment

8.4.1. yC

8.4.2. BitCoins

8.4.3. USD

8.5. Catagory