Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <center class="contenttitle">Home</center>
- <center>
- <p> <center>
- <?php
- $where .= " and `keyword` in (select keyword FROM AdCraft_url WHERE userid='".$_SESSION["id"]."') ";
- list( $total_urls, $total_clicks ) = array_values( yourls_get_db_stats($where) );
- if ( $where ) {
- list( $total_items, $total_items_clicks ) = array_values( yourls_get_db_stats( $where ) );
- } else {
- $total_items = $total_urls;
- $total_items_clicks = false;
- }
- ?>
- You have, <strong class='increment'><?php echo number_format($total_urls); ?>
- </strong> links, which have recieved a total of <strong><?php echo number_format($total_clicks); ?> </strong>
- visitors, and counting! <br />
- <?php
- $value = (int) $total_clicks;
- switch (true) {
- case ($value >= 100001 && $value <= 999999) :
- echo "You must be famous!";
- break;
- case ($value == 1000000) :
- echo "ONE MILLION.";
- break;
- case ($value >= 100001 && $value <= 999999) :
- echo "Over 100'000, your good at this.";
- break;
- case ($value >= 10001 && $value <= 100000) :
- echo "Over 10'000, your Mr. Popular ;). Good Work ".$_SESSION['usr'];
- break;
- case ($value >= 1001 && $value <= 10000) :
- echo "Over 1000, Nice work.";
- break;
- case ($value >= 101 && $value <= 1000) :
- echo "Now you've got it.";
- break;
- case ($value >= 11 && $value <= 100) :
- echo "Good Start, keep sharing.";
- break;
- case ($value >= 0 && $value <= 10) :
- echo "You're new aren't you.";
- break;
- }
- ?><br />
- You have earned roughly $<?php
- $value2 = ((int) $total_clicks)/1000;
- $value2 = $value2*6.444;
- $value2 = round($value2, 2);
- echo ($value2)
- ?>. This is only an estimate and is caluclated based on your total views and this month's rate so far.
Add Comment
Please, Sign In to add comment