diff --git a/removed_stuff/REMOVED_new_market/apps.php b/removed_stuff/REMOVED_new_market/apps.php new file mode 100644 index 0000000..84f0919 --- /dev/null +++ b/removed_stuff/REMOVED_new_market/apps.php @@ -0,0 +1,334 @@ + + + +
+ + + + + +
+ + Top Featured +
+ + Curated by our content managers. + +
+ +
+
+"; +echo ""; +while ($app = mysqli_fetch_assoc($query)) { + $app_id = $app_id + 1; + if ($app_id % $per_row == 1) { + echo ""; + } + $app_uqid = $app['uqid']; + $appy = mysqli_query($conx, "SELECT uqid,title,app_color,app_titlecolor,link,icon,developer,price FROM apps WHERE uqid='$app_uqid'"); + while($ap = mysqli_fetch_assoc($appy)) { + $app_uqqid = $ap['uqid']; + $app_color = $ap['app_color']; + $app_tcolor = $ap['app_titlecolor']; + $app_name = $ap['title']; + $app_link = $ap['link']; + $app_icon = $ap['icon']; + $app_dev = $ap['developer']; + $app_price = $ap['price']; + if($app_price == 0) { + $app_price = "FREE"; + } + else { + $app_price = "$" . $app_price; + } + } + echo ""; + if ($app_id % $per_row == 0) + echo ""; +} +$spacercells = $per_row - ($app_id % $per_row); +if ($spacercells < $per_row) { + for ($j=1; $j <= $spacercells; $j++) { + //""; + } + echo ""; +} +echo "
+
+ + + + +
 
+ + $app_name +
+ $app_dev +
+ + + + + +
"; + $total_num = 0; + $rate_c = mysqli_num_rows($rate_q = mysqli_query($conx, "SELECT rating FROM market_ratings WHERE app_uqid='$app_uqqid'")); + while($rate_r = mysqli_fetch_assoc($rate_q)) { + $ratings = $rate_r['rating']; + + $total_num += $ratings; + + } + $rating = $total_num / $rate_c; + $rating_dec = $rating - (int) $rating; + $rating_num = floor($rating); + if($rating_num == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 3) { + echo ""; + echo ""; + echo ""; + } + if($rating_num == 2) { + echo ""; + echo ""; + } + if($rating_num == 1) { + echo ""; + } + if($rating_dec <= .5 && $rating_dec != 0) { + echo ""; + } + if($rating_dec > .5 && $rating_dec != 0) { + echo ""; + } + $left_over = 5 - $rating; + $left_over = floor($left_over); + if($left_over == 1) { + echo ""; + } + if($left_over == 2) { + echo ""; + echo ""; + } + if($left_over == 3) { + echo ""; + echo ""; + echo ""; + } + if($left_over == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($left_over == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + echo ""; + if(mysqli_num_rows(mysqli_query($conx, "SELECT id FROM user_apps WHERE app_uqid='$app_uqid' && uid='$u_uid'")) != 0) { + echo ""; + } + else { + echo "$app_price"; + } + echo "
+
+
+
"; +?> + + +
+ + + + + +
+ + Apps +
+ + Sorted by most recently added. + +
+
+   view more   +
+
+
+"; +echo ""; +while ($app = mysqli_fetch_assoc($query)) { + $app_id = $app_id + 1; + if ($app_id % $per_row == 1) { + echo ""; + } + $app_uqid = $app['uqid']; + $appy = mysqli_query($conx, "SELECT uqid,title,app_color,app_titlecolor,link,icon,developer,price FROM apps WHERE uqid='$app_uqid'"); + while($ap = mysqli_fetch_assoc($appy)) { + $app_uqqid = $ap['uqid']; + $app_color = $ap['app_color']; + $app_tcolor = $ap['app_titlecolor']; + $app_name = $ap['title']; + $app_link = $ap['link']; + $app_icon = $ap['icon']; + $app_dev = $ap['developer']; + $app_price = $ap['price']; + if($app_price == 0) { + $app_price = "FREE"; + } + else { + $app_price = "$" . $app_price; + } + } + echo ""; + if ($app_id % $per_row == 0) + echo ""; +} +$spacercells = $per_row - ($app_id % $per_row); +if ($spacercells < $per_row) { + for ($j=1; $j <= $spacercells; $j++) { + //""; + } + echo ""; +} +echo "
+
+ + + + +
 
+ + $app_name +
+ $app_dev +
+ + + + + +
"; + $total_num = 0; + $rate_c = mysqli_num_rows($rate_q = mysqli_query($conx, "SELECT rating FROM market_ratings WHERE app_uqid='$app_uqqid'")); + while($rate_r = mysqli_fetch_assoc($rate_q)) { + $ratings = $rate_r['rating']; + + $total_num += $ratings; + + } + $rating = $total_num / $rate_c; + $rating_dec = $rating - (int) $rating; + $rating_num = floor($rating); + if($rating_num == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 3) { + echo ""; + echo ""; + echo ""; + } + if($rating_num == 2) { + echo ""; + echo ""; + } + if($rating_num == 1) { + echo ""; + } + if($rating_dec <= .5 && $rating_dec != 0) { + echo ""; + } + if($rating_dec > .5 && $rating_dec != 0) { + echo ""; + } + $left_over = 5 - $rating; + $left_over = floor($left_over); + if($left_over == 1) { + echo ""; + } + if($left_over == 2) { + echo ""; + echo ""; + } + if($left_over == 3) { + echo ""; + echo ""; + echo ""; + } + if($left_over == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($left_over == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + echo ""; + if(mysqli_num_rows(mysqli_query($conx, "SELECT id FROM user_apps WHERE app_uqid='$app_uqid' && uid='$u_uid'")) != 0) { + echo ""; + } + else { + echo "$app_price"; + } + echo "
+
+
+
"; +?> diff --git a/removed_stuff/REMOVED_new_market/categories.php b/removed_stuff/REMOVED_new_market/categories.php new file mode 100644 index 0000000..e693065 --- /dev/null +++ b/removed_stuff/REMOVED_new_market/categories.php @@ -0,0 +1,217 @@ + +
+ + + + +
+ + +
+ + + +
+
+"; +// app tray +$query = mysqli_query($conx, "SELECT uqid FROM market WHERE promo_hotkey='$promo_hkey' ORDER BY promo_tstamp DESC LIMIT 12"); +$app_cnt = mysqli_num_rows(mysqli_query($conx, "SELECT uqid FROM market WHERE promo_hotkey='$promo_hkey' ORDER BY promo_tstamp DESC")); +$per_row = 3; +$app_id = 0; +echo "
"; +echo ""; +while ($app = mysqli_fetch_assoc($query)) { + $app_id = $app_id + 1; + if ($app_id % $per_row == 1) { + echo ""; + } + $app_uqid = $app['uqid']; + $appy = mysqli_query($conx, "SELECT uqid,title,app_color,app_titlecolor,link,icon,developer,price FROM apps WHERE uqid='$app_uqid'"); + while($ap = mysqli_fetch_assoc($appy)) { + $app_uqqid = $ap['uqid']; + $app_color = $ap['app_color']; + $app_tcolor = $ap['app_titlecolor']; + $app_name = $ap['title']; + $app_link = $ap['link']; + $app_icon = $ap['icon']; + $app_dev = $ap['developer']; + $app_price = $ap['price']; + if($app_price == 0) { + $app_price = "FREE"; + } + else { + $app_price = "$" . $app_price; + } + } + echo ""; + if ($app_id % $per_row == 0) + echo ""; +} +$spacercells = $per_row - ($app_id % $per_row); +if ($spacercells < $per_row) { + for ($j=1; $j <= $spacercells; $j++) { + //""; + } + echo ""; +} +echo "
+
+ + + + +
 
+ + $app_name +
+ $app_dev +
+ + + + + +
"; + $total_num = 0; + $rate_c = mysqli_num_rows($rate_q = mysqli_query($conx, "SELECT rating FROM market_ratings WHERE app_uqid='$app_uqqid'")); + while($rate_r = mysqli_fetch_assoc($rate_q)) { + $ratings = $rate_r['rating']; + + $total_num += $ratings; + + } + $rating = $total_num / $rate_c; + $rating_dec = $rating - (int) $rating; + $rating_num = floor($rating); + if($rating_num == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 3) { + echo ""; + echo ""; + echo ""; + } + if($rating_num == 2) { + echo ""; + echo ""; + } + if($rating_num == 1) { + echo ""; + } + if($rating_dec <= .5 && $rating_dec != 0) { + echo ""; + } + if($rating_dec > .5 && $rating_dec != 0) { + echo ""; + } + $left_over = 5 - $rating; + $left_over = floor($left_over); + if($left_over == 1) { + echo ""; + } + if($left_over == 2) { + echo ""; + echo ""; + } + if($left_over == 3) { + echo ""; + echo ""; + echo ""; + } + if($left_over == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($left_over == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + echo ""; + if(mysqli_num_rows(mysqli_query($conx, "SELECT id FROM user_apps WHERE app_uqid='$app_uqid' && uid='$u_uid'")) != 0) { + echo ""; + } + else { + echo "$app_price"; + } + echo "
+
+
+
"; +echo ""; + +if($app_cnt > 12) { + echo "
"; +} +?> + + diff --git a/removed_stuff/REMOVED_new_market/cont_amnt.php b/removed_stuff/REMOVED_new_market/cont_amnt.php new file mode 100644 index 0000000..15af31f --- /dev/null +++ b/removed_stuff/REMOVED_new_market/cont_amnt.php @@ -0,0 +1,12 @@ + diff --git a/removed_stuff/REMOVED_new_market/content.php b/removed_stuff/REMOVED_new_market/content.php new file mode 100644 index 0000000..52e2e46 --- /dev/null +++ b/removed_stuff/REMOVED_new_market/content.php @@ -0,0 +1,256 @@ + +"; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo "
"; +echo "$app_name"; +echo "
"; +echo " $app_dev"; +echo "
"; +echo "\"\""; +echo "
"; +if($u_cont_mang == 'yes' && $mrkt_promo_hotkey != 'top_featured') { + echo "  "; +} +if($mrkt_promo_hotkey == 'top_featured') { + echo "  "; +} +if($app_prchsd = mysqli_num_rows(mysqli_query($conx, "SELECT id FROM user_apps WHERE app_uqid='$app_uqid' && uid='$u_uid'")) != 0) { + echo "
  LAUNCH  
"; +} +elseif($app_price_d > $u_funds && $app_price_d != 0) { + echo "
  INSUFFICIENT FUNDS  
"; +} +else { + echo "
  $app_price  
"; +} +echo "
"; +echo ""; +echo "
"; +$string = $app_desc; +require_once("../inc/replace.php"); +echo "$string

"; +$app_rated = mysqli_num_rows($asdf = mysqli_query($conx, "SELECT uid,rating FROM market_ratings WHERE app_uqid='$app_uqid' && uid='$u_uid'")); +$asdfr = mysqli_fetch_assoc($asdf); +$rated_num = $asdfr['rating']; +$total_num = 0; +$rate_c = mysqli_num_rows($rate_q = mysqli_query($conx, "SELECT rating FROM market_ratings WHERE app_uqid='$app_id'")); +while($rate_r = mysqli_fetch_assoc($rate_q)) { + $ratings = $rate_r['rating']; + $total_num += $ratings; +} +$rating = $total_num / $rate_c; +$rating_dec = $rating - (int) $rating; +$rating_num = floor($rating); +$rating_read = round($rating, 1); +echo "
$rating_read
"; +if($app_rated == 0 && $app_prchsd != 0) { + echo " Rate by selecting a star value
"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; +} +else { + if($app_prchsd != 0) { + echo " Remove $rated_num rating
"; + } + if($rating_num == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 3) { + echo ""; + echo ""; + echo ""; + } + if($rating_num == 2) { + echo ""; + echo ""; + } + if($rating_num == 1) { + echo ""; + } + if($rating_dec <= .5 && $rating_dec != 0) { + echo ""; + } + if($rating_dec > .5 && $rating_dec != 0) { + echo ""; + } + $left_over = 5 - $rating; + $left_over = floor($left_over); + if($left_over == 1) { + echo ""; + } + if($left_over == 2) { + echo ""; + echo ""; + } + if($left_over == 3) { + echo ""; + echo ""; + echo ""; + } + if($left_over == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($left_over == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } +} +echo "

"; +?> +
+ diff --git a/removed_stuff/REMOVED_new_market/feature.php b/removed_stuff/REMOVED_new_market/feature.php new file mode 100644 index 0000000..040a7a4 --- /dev/null +++ b/removed_stuff/REMOVED_new_market/feature.php @@ -0,0 +1,31 @@ + diff --git a/removed_stuff/REMOVED_new_market/index.php b/removed_stuff/REMOVED_new_market/index.php index 8b13789..3aebde1 100644 --- a/removed_stuff/REMOVED_new_market/index.php +++ b/removed_stuff/REMOVED_new_market/index.php @@ -1 +1,158 @@ + + + + + Market - Misdew + + + + + + + "; + } + if($css_type == "raw") { + echo ""; + } + ?> + + + + + +
+ +
+ + + + + + + +
+ Apps + + Services + + Merch + +
+

+ +
+ +
+ +
+ + + diff --git a/removed_stuff/REMOVED_new_market/merch.php b/removed_stuff/REMOVED_new_market/merch.php new file mode 100644 index 0000000..cc03567 --- /dev/null +++ b/removed_stuff/REMOVED_new_market/merch.php @@ -0,0 +1,16 @@ +
+
+ + Misdew Coins - $7.89
+ These coins are custom made and designed by the owner of Misdew. You will receieve the legacy and evolution versions. A redeemable code for a random amount of Misdew Funds will also be included.

+
+ + + + +
+ +
payments are processed and handled by PayPal; all sales are final - no returns or refunds
orders will usually ship within 1-2 business days
+
+
+
diff --git a/removed_stuff/REMOVED_new_market/more_categories.php b/removed_stuff/REMOVED_new_market/more_categories.php new file mode 100644 index 0000000..16d5e73 --- /dev/null +++ b/removed_stuff/REMOVED_new_market/more_categories.php @@ -0,0 +1,157 @@ +"; +echo ""; +while ($app = mysqli_fetch_assoc($query)) { + $app_id = $app_id + 1; + if ($app_id % $per_row == 1) { + echo ""; + } + $app_uqid = $app['uqid']; + $appy = mysqli_query($conx, "SELECT uqid,title,app_color,app_titlecolor,link,icon,developer,price FROM apps WHERE uqid='$app_uqid'"); + while($ap = mysqli_fetch_assoc($appy)) { + $app_uqqid = $ap['uqid']; + $app_color = $ap['app_color']; + $app_tcolor = $ap['app_titlecolor']; + $app_name = $ap['title']; + $app_link = $ap['link']; + $app_icon = $ap['icon']; + $app_dev = $ap['developer']; + $app_price = $ap['price']; + if($app_price == 0) { + $app_price = "FREE"; + } + else { + $app_price = "$" . $app_price; + } + } + echo ""; + if ($app_id % $per_row == 0) + echo ""; +} +$spacercells = $per_row - ($app_id % $per_row); +if ($spacercells < $per_row) { + for ($j=1; $j <= $spacercells; $j++) { + //""; + } + echo ""; +} +echo "
+
+ + + + +
 
+ + $app_name +
+ $app_dev +
+ + + + + +
"; + $total_num = 0; + $rate_c = mysqli_num_rows($rate_q = mysqli_query($conx, "SELECT rating FROM market_ratings WHERE app_uqid='$app_uqqid'")); + while($rate_r = mysqli_fetch_assoc($rate_q)) { + $ratings = $rate_r['rating']; + + $total_num += $ratings; + + } + $rating = $total_num / $rate_c; + $rating_dec = $rating - (int) $rating; + $rating_num = floor($rating); + if($rating_num == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 3) { + echo ""; + echo ""; + echo ""; + } + if($rating_num == 2) { + echo ""; + echo ""; + } + if($rating_num == 1) { + echo ""; + } + if($rating_dec <= .5 && $rating_dec != 0) { + echo ""; + } + if($rating_dec > .5 && $rating_dec != 0) { + echo ""; + } + $left_over = 5 - $rating; + $left_over = floor($left_over); + if($left_over == 1) { + echo ""; + } + if($left_over == 2) { + echo ""; + echo ""; + } + if($left_over == 3) { + echo ""; + echo ""; + echo ""; + } + if($left_over == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($left_over == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + echo ""; + if(mysqli_num_rows(mysqli_query($conx, "SELECT id FROM user_apps WHERE app_uqid='$app_uqid' && uid='$u_uid'")) != 0) { + echo ""; + } + else { + echo "$app_price"; + } + echo "
+
+
+
"; +?> diff --git a/removed_stuff/REMOVED_new_market/purchase.php b/removed_stuff/REMOVED_new_market/purchase.php new file mode 100644 index 0000000..ee8bcb0 --- /dev/null +++ b/removed_stuff/REMOVED_new_market/purchase.php @@ -0,0 +1,53 @@ + $u_funds) { + exit(); + } + else { + $new_funds = $u_funds - $app_price_d; + mysqli_query($conx, "UPDATE accounts SET funds='$new_funds' WHERE uid='$u_uid'"); + // Give the Developer their Fair Share + $dev_funds = $app_price_d * ((100-30) / 100); + mysqli_query($conx, "UPDATE accounts SET funds='$app_dev_funds'+$dev_funds WHERE uid='$app_dev_uid'"); + // Give Uncle MD its Fair Share + $devvq = mysqli_query($conx, "SELECT uid,funds FROM accounts WHERE username='Misdew'"); + $devvr = mysqli_fetch_assoc($devvq); + $app_dev_uidd = $devvr['uid']; + $app_dev_fundss = $devvr['funds']; + $md_funds = $app_price_d - $dev_funds; + mysqli_query($conx, "UPDATE accounts SET funds='$app_dev_fundss'+$md_funds WHERE uid='$app_dev_uidd'"); + } + } + $arrange = mysqli_num_rows(mysqli_query($conx, "SELECT id FROM user_apps WHERE uid='$u_uid'")); + $arrange = $arrange + 1; + mysqli_query($conx, "INSERT INTO user_apps (arrange,uid,app_uqid) VALUES ('$arrange','$u_uid','$app_uqid')"); + } +} +?> diff --git a/removed_stuff/REMOVED_new_market/rate.php b/removed_stuff/REMOVED_new_market/rate.php new file mode 100644 index 0000000..51669bc --- /dev/null +++ b/removed_stuff/REMOVED_new_market/rate.php @@ -0,0 +1,46 @@ + diff --git a/removed_stuff/REMOVED_new_market/search.php b/removed_stuff/REMOVED_new_market/search.php new file mode 100644 index 0000000..c40e65a --- /dev/null +++ b/removed_stuff/REMOVED_new_market/search.php @@ -0,0 +1,24 @@ + + + diff --git a/removed_stuff/REMOVED_new_market/search_results.php b/removed_stuff/REMOVED_new_market/search_results.php new file mode 100644 index 0000000..9cc742b --- /dev/null +++ b/removed_stuff/REMOVED_new_market/search_results.php @@ -0,0 +1,120 @@ +"; +$appy = mysqli_query($conx, "SELECT uqid,title,app_color,app_titlecolor,link,icon,developer,price FROM apps WHERE title LIKE '$q%' && discoverable='yes' ORDER BY title"); +$result_cnt = mysqli_num_rows($appy); +if($result_cnt == '0') { + echo "
no results
"; +} +while($ap = mysqli_fetch_assoc($appy)) { + $app_uqqid = $ap['uqid']; + $app_color = $ap['app_color']; + $app_tcolor = $ap['app_titlecolor']; + $app_name = $ap['title']; + $app_link = $ap['link']; + $app_icon = $ap['icon']; + $app_dev = $ap['developer']; + $app_price = $ap['price']; + if($app_price == 0) { + $app_price = "FREE"; + } + else { + $app_price = "$" . $app_price; + } + echo "
"; + echo "
"; + echo "\"\""; + echo ""; + echo "  $app_name
"; + echo "  $app_dev
"; + echo "  "; + $total_num = 0; + $rate_c = mysqli_num_rows($rate_q = mysqli_query($conx, "SELECT rating FROM market_ratings WHERE app_uqid='$app_uqqid'")); + while($rate_r = mysqli_fetch_assoc($rate_q)) { + $ratings = $rate_r['rating']; + + $total_num += $ratings; + + } + $rating = $total_num / $rate_c; + $rating_dec = $rating - (int) $rating; + $rating_num = floor($rating); + if($rating_num == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($rating_num == 3) { + echo ""; + echo ""; + echo ""; + } + if($rating_num == 2) { + echo ""; + echo ""; + } + if($rating_num == 1) { + echo ""; + } + if($rating_dec <= .5 && $rating_dec != 0) { + echo ""; + } + if($rating_dec > .5 && $rating_dec != 0) { + echo ""; + } + $left_over = 5 - $rating; + $left_over = floor($left_over); + if($left_over == 1) { + echo ""; + } + if($left_over == 2) { + echo ""; + echo ""; + } + if($left_over == 3) { + echo ""; + echo ""; + echo ""; + } + if($left_over == 4) { + echo ""; + echo ""; + echo ""; + echo ""; + } + if($left_over == 5) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + if(mysqli_num_rows(mysqli_query($conx, "SELECT id FROM user_apps WHERE app_uqid='$app_uqqid' && uid='$u_uid'")) != 0) { + echo "   "; + } + else { + echo "   $app_price"; + } + echo "
"; + echo " "; + echo "
"; + echo "
"; +} +echo ""; +?> diff --git a/removed_stuff/REMOVED_new_market/services.php b/removed_stuff/REMOVED_new_market/services.php new file mode 100644 index 0000000..ef1ee90 --- /dev/null +++ b/removed_stuff/REMOVED_new_market/services.php @@ -0,0 +1,7 @@ +
+
+ + We currently do not have any services. + +
+