function generateScript($adLinkData) { $pl = new publink(""); $this->id = $pl->generateScript($adLinkData); $this->link = $adLinkData['videoCode']; if ($this->id != 0) { $this->script = "<EMBED SRC='http://www.sam-rad.com/YouTubePlayer.swf' FlashVars='id=" . $this->id . "&link=" . $this->link . "?version=3' WIDTH='960' HEIGHT='540' allowfullscreen='true' scale='noscale'/>"; $rnd = substr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", rand(1, 52) - 1, 1); $this->script_link = "http://www.sam-rad.com/watch?" . $this->id . "{$rnd}" . $this->link; } else { $this->script = "You must be logged in<br /><br /><br />*In order to enable us to track your earnings by sharing this video, you need to be logged in*"; } }
function frm_OLD() { $pl = new publink(""); $data = $pl->backStat($this->linkID); if (!is_array($data)) { return "No Record for Statistics"; } $total = 0; $html = '<div style="width:200px;float:left;">'; $html .= '<div style="float:left;width:100;display:inline;margin:2px;padding:2px;border:1px dotted black;">Country</div>'; $html .= '<div style="float:left;width:50;display:inline;margin:2px;padding:2px;border:1px dotted black;">Views</div></div>'; foreach ($data as $d) { $html .= '<div style="width:200px;float:left;">'; $html .= '<div style="float:left;width:100;display:inline;margin:2px;padding:2px;border:1px dotted black;">' . $d['countryName'] . '(' . $d['countryCode'] . ')</div>'; $html .= '<div style="float:left;width:50;display:inline;margin:2px;padding:2px;border:1px dotted black;">' . $d['views'] . '</div></div>'; $total += $d['views']; } $html .= '<div style="width:200px;float:left;border:1px dotted black;">'; $html .= '<div style="float:left;width:100;display:inline;margin:2px;padding:2px;text-align:right;">Total:</div>'; $html .= '<div style="float:left;width:50;display:inline;margin:2px;padding:2px;">' . $total . '</div></div>'; $html .= '<div style="float:left;width:150;display:inline;margin:2px;padding:2px;"><a target="_blank" href="/worldmap?video=' . $this->linkID . '&title=' . $this->title . '" title="Open in new window">Show on Map</a></div>'; return $html; }