Esempio n. 1
0
function cc_print_thewidth_list($size)
{
    $size_list = array("60", "85", "100", "128", "140", "150", "160", "165", "170", "175", "180", "185", "190", "200", "210", "220", "230", "240", "250", "275", "300", "320", "375", "400", "474", "500", "525", "550", "574", "600", "650", "700");
    echo "\n";
    foreach ($size_list as $isize) {
        $check_value = "";
        if ($isize == $size) {
            $check_value = ' SELECTED ';
        }
        echo '<option value="' . $isize . '" ' . $check_value . '>' . UCWords($isize) . '</option>';
        echo "\n";
    }
}
while ($tracker >= 0) {
    $date = date("Y-m", strtotime("-" . $tracker . " month"));
    $last7Days[$date] = 0;
    $tracker--;
}
$minY = 0;
$maxY = 10;
foreach ($last7Days as $k => $total) {
    $totalUrls = $db->getValue("SELECT COUNT(id) AS total FROM file WHERE MID(uploadedDate, 1, 7) = '" . $k . "'");
    $last7Days[$k] = (int) $totalUrls;
    if ($totalUrls > $maxY) {
        $maxY = $totalUrls;
    }
}
$strXML = "";
$strXML .= "<graph caption='" . t("dashboard_graph_last_12_months_title", "Last 12 months file uploads") . "' yAxisMinValue='" . $minY . "' yAxisMaxValue='" . $maxY . "' canvasBorderThickness='1' showValues='0' canvasBgColor='dddddd' divlinecolor='ffffff' canvasBorderColor='cccccc' rotateNames='0' animation='1' xAxisName='Month' yAxisName='" . UCWords(t("files", "files")) . "' decimalPrecision='0' formatNumberScale='0' baseFont='Arial' baseFontSize='12'>";
foreach ($last7Days as $k => $total) {
    $position = rand(0, COUNT($colours) - 1);
    $strXML .= "<set name='" . dater($k, "M") . "' value='" . $total . "' color='" . $colours[$position] . "'/>";
}
$strXML .= "</graph>";
echo renderChartHTML("admin_libraries/charts/Charts/FCF_Column2D.swf", "", $strXML, "yearChart", 600, 300);
?>
</div>

<div class="dashboardDataTable">
	<div id="dashboardOverviewTable" class="yuiTable"></div>
	<script>
	mfScripts.dashboardOverviewTable = {};
	mfScripts.dashboardOverviewTable.Data = {
		configData: [
?>
                            </td>
                        </tr>
                        <?php 
if ($Auth->level != 'free user') {
    ?>
                        <tr>
                            <td class="first">
                                <?php 
    echo UCWords(t('reverts_to_free_account', 'reverts to free account'));
    ?>
:
                            </td>
                            <td>
                                <?php 
    echo $Auth->level == 'paid user' ? dater($Auth->paidExpiryDate) : UCWords(t('never', 'never'));
    ?>
                            </td>
                        </tr>
                        <?php 
}
?>
                    </tbody>
                </table>
            </div>
            <div class="clear"><!-- --></div>

            <div id="pageHeader" style="padding-top: 18px;">
                <h2><?php 
echo strtolower(PAGE_NAME);
?>
?>
/search.html">
								<table width="100%"  border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td valign="top" style="padding-top:3px ">By category <br></td>
									<td width="110"><select name="category" style="width:110px;font-size:13px;margin-bottom:4px;margin-top:1px " >
									<option value="">- ALL -</option>
									<?php 
$i = 0;
$rows = count($cats);
while ($i < $rows) {
    echo "<option value=\"{$cats[$i]}\"";
    if ($category == $cats[$i]) {
        echo " SELECTED";
    }
    echo ">" . UCWords($cats[$i]) . "</option>";
    $i++;
}
?>
									</select></td>
								</tr>
								<tr>
									<td colspan="2" style="padding-top:6px ">
										By recipe/ingredient name<br>
										<input type="text" name="criteria" style="width:110px;height:21px;font-size:11px;margin-top:1px;margin-right:5px"><input type="image" src="http://<?php 
echo $site_url;
?>
/images/search-1.jpg" border="0" align="absmiddle">
									</td>
								</tr>
								</table>
Esempio n. 5
0
     $core->log[] = str_replace("#", CONS_MAX_MUP, $core->langOut("mup_toomany"));
 }
 $sucess = 0;
 $errors = 0;
 $filesToGo = count($listFiles);
 $originalTitle = isset($_POST[$module->title]) ? $_POST[$module->title] : "";
 foreach ($listFiles as $file) {
     if ($file != "." && $file != ".." && !is_dir($destination . $file)) {
         $filesToGo--;
         $simulatedUpload = array('name' => $file, 'type' => '', 'size' => filesize($destination . $file), 'tmp_name' => $destination . $file, 'error' => 0, 'virtual' => true);
         $_FILES[$upField] = $simulatedUpload;
         $filen = explode(".", $file);
         array_pop($filen);
         $filen = implode(".", $filen);
         if ($getNames) {
             $_POST[$module->title] = UCWords(str_replace("_", " ", $filen));
         }
         if ($addCounter) {
             $_POST[$module->title] .= " " . ($sucess + 1);
         }
         $ok = $core->runAction($module, CONS_ACTION_INCLUDE, $_POST, false);
         $_POST[$module->title] = $originalTitle;
         if ($ok) {
             $sucess++;
         } else {
             $errors++;
             $core->errorState = false;
         }
         if ($core->nearTimeLimit()) {
             $core->errorControl->raise('524', "Nearing time limit after processing {$sucess} files ({$errors} errors). Aborting.");
             $core->log[] = $core->langOut("mpu_partial") . ": {$sucess} ({$errors} errors)";
Esempio n. 6
0
 /**
  * Validate the domain and return kind data
  * @param array $request    the request
  * @return text             the help text (usually html)
  */
 public function validateDomain($request)
 {
     global $dsn;
     $result = array();
     $validChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_';
     $validPwChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789';
     $request['dn_name'] = strToUpper($request['dn_name']);
     $request['dn_name'] = str_replace(' ', '_', $request['dn_name']);
     $domain = '';
     for ($i = 0; $i < strlen($request['dn_name']); $i++) {
         if (strpos($validChars, $request['dn_name'][$i]) !== false) {
             $domain .= $request['dn_name'][$i];
         }
     }
     $result['dn_name'] = $domain;
     $request['dn_name_alias'] = strToUpper($request['dn_name_alias']);
     $request['dn_name_alias'] = str_replace(' ', '_', $request['dn_name_alias']);
     $domain_alias = '';
     $validChars = $validChars . ',;';
     for ($i = 0; $i < strlen($request['dn_name_alias']); $i++) {
         if (strpos($validChars, $request['dn_name_alias'][$i]) !== false) {
             $domain_alias .= $request['dn_name_alias'][$i];
         }
     }
     $result['dn_name_alias'] = $domain_alias;
     if (isset($request['is_alias']) && $request['is_alias'] == 'F') {
         if (in_array($domain, R3EcoGisCustomerHelper::getDomainsList($this->auth))) {
             return array('status' => R3_AJAX_ERROR, 'error' => array('text' => 'Attenzione! Dominio già esistente'));
         }
         // Generate password
         $domainLower = strtolower($domain);
         $pw = '';
         $pw2 = '';
         for ($i = 0; $i < 8; $i++) {
             $pw .= $validPwChars[rand(0, strlen($validPwChars) - 1)];
             $pw2 .= $validPwChars[rand(0, strlen($validPwChars) - 1)];
         }
         $result['cus_name_1'] = UCWords(str_replace('_', ' ', $domainLower));
         $result['cus_name_2'] = $result['cus_name_1'];
         $result['us_name'] = 'Administrator (' . UCFirst($domainLower) . ')';
         $result['us_login'] = '******';
         $result['us_password'] = $pw2;
         $result['dn_name_lower'] = $domainLower;
         if ($this->isMultiDomain()) {
             $result['do_schema'] = 'geo_' . $domainLower;
             $result['do_gc_mapset'] = 'r3-ecogis-' . strtolower($request['dn_name']);
         } else {
             $result['do_schema'] = 'geo';
             $result['do_gc_mapset'] = 'r3-ecogis';
         }
         $result['do_gc_project'] = strtolower($request['dn_name']);
     }
     return $result;
 }
echo t("total_visits", "total visits");
?>
</th>
									<th scope="col" class="figures"><?php 
echo t("percentage", "percentage");
?>
</th>
							</tr>
						</thead>
						<tbody>
							<?php 
foreach ($dataForPie as $dataRow) {
    $os = $dataRow['os'] ? $dataRow['os'] : "unknown";
    $iconPath = SITE_IMAGE_PATH . "/stats/os/" . strtolower($os) . ".png";
    echo "<tr>";
    echo "<td><img src=\"" . $iconPath . "\" width='14' height='14' alt=\"" . $os . "\" style=\"float:left;\">&nbsp;&nbsp;" . UCWords($os) . "</td>";
    echo "<td class=\"figures\">" . $dataRow['total'] . "</td>";
    echo "<td class=\"figures\">" . number_format($dataRow['total'] / $totalVisits * 100, 1) . "%</td>";
    echo "</tr>";
}
?>
						</tbody>
					</table>
				</div>
				
			</div>
			
		</div>
	</div>
</div>
Esempio n. 8
0
     $extra['extra_header_left'] .= '</TR></TABLE></TD></TR>';
     //modif Francois: add frames choice
     $frames = array();
     if (is_dir('assets/Frames/')) {
         $frames = scandir('assets/Frames/');
     }
     //no frame first and checked
     $extra['extra_header_left'] .= '<TR><TD style="text-align:right; vertical-align:top;">' . _('Frame') . '</TD><TD><DIV style="overflow-x:auto; height:160px;"><table class="cellpadding-0 cellspacing-0"><tr><td class="image-radio-list"><label class="image-radio-list"><INPUT type="radio" name="frame" value="" checked /> ' . _('No frame') . '</label></td>';
     //create radio list with thumbnails
     $i = 1;
     foreach ($frames as $frame) {
         //filter images
         if (in_array(mb_strtolower(mb_strrchr($frame, '.')), array('.jpg', '.jpeg', '.png', '.gif'))) {
             //if ($i % 5 == 0) //change table row each five thumbnails
             //$extra['extra_header_left'] .= '</TR><TR>';
             $extra['extra_header_left'] .= '<td class="image-radio-list"><label class="image-radio-list"><INPUT type="radio" name="frame" value="' . $frame . '"> <img src="assets/Frames/' . $frame . '" class="image-radio-list" title="' . UCWords(str_replace(array('_', '.jpg', '.jpeg', '.png', '.gif'), array(' ', ''), $frame)) . '" /></label></td>';
             $i++;
         }
     }
     $extra['extra_header_left'] .= '</tr></table></DIV></TD></TR>';
     $extra['extra_header_left'] .= '</TABLE>';
 }
 if (!isset($_REQUEST['_ROSARIO_PDF'])) {
     $extra['SELECT'] = ",s.STUDENT_ID AS CHECKBOX";
     $extra['functions'] = array('CHECKBOX' => '_makeChooseCheckbox');
     $extra['columns_before'] = array('CHECKBOX' => '</A><INPUT type="checkbox" value="Y" name="controller" checked onclick="checkAll(this.form,this.form.controller.checked,\'st_arr\');"><A>');
 }
 $extra['link'] = array('FULL_NAME' => false);
 $extra['new'] = true;
 $extra['options']['search'] = false;
 $extra['force_search'] = true;
<?php

require_once 'ajax_auth.inc.php';
$db = Database::getDatabase();
/* get vars */
$params = json_decode($_REQUEST['value']);
$username = trim(strtolower($params->group1->username));
$password = trim($params->group1->password);
$state = $params->group2->state;
$accounttype = $params->group2->accounttype;
$title = $params->group3->title;
$firstname = UCWords(strtolower(trim($params->group3->firstname)));
$lastname = UCWords(strtolower(trim($params->group3->lastname)));
$email = strtolower(trim($params->group3->email));
$accountexpiry = trim($params->group2->accountexpiry);
$response = array();
$response['content'] = "";
$response['javascript'] = "";
$response['errors'] = array();
$response['success'] = 1;
/* validate submission */
/* @TODO - check for existing user/email */
if (_CONFIG_DEMO_MODE == true) {
    $response['errors']['serverLabel'] = array(t("no_changes_in_demo_mode"));
} elseif (strlen($username) < 6 || strlen($username) > 16) {
    $response['errors']['username'] = array(t("username_length_invalid"));
} elseif (strlen($password) < 6 || strlen($password) > 16) {
    $response['errors']['password'] = array(t("password_length_invalid"));
} elseif (strlen($firstname) == 0) {
    $response['errors']['firstname'] = array(t("enter_first_name"));
} elseif (strlen($lastname) == 0) {
                    <input type="image" src="<?php 
    echo SITE_IMAGE_PATH;
    ?>
/paypal_button.gif" width="158" height="51" alt="<?php 
    echo UCWords(t('pay_via_paypal', 'Pay via PayPal'));
    ?>
" />
                </form>
            </div>
            <div class="clear"></div>
            <div class="secure">
                <img src="<?php 
    echo SITE_IMAGE_PATH;
    ?>
/icon_padlock.gif" width="12" height="12" alt="<?php 
    echo UCWords(t('secure_payment', 'secure payment'));
    ?>
" style="vertical-align:middle;"/>
                <span style="vertical-align: middle;">&nbsp;<?php 
    echo UCWords(t('safe_and_anonymous', '100% Safe & Anonymous'));
    ?>
</span>
            </div>
            <div class="clear"></div>
        </div>
    </div>
</div>
<?php 
}
?>
<div class="clear"></div>
    ?>
", sortable:true},
                                {key:"storagePath", label:"<?php 
    echo UCWords(t("storage_path", "storage path"));
    ?>
", sortable:true},
                                {key:"totalFileSize", label:"<?php 
    echo UCWords(t("total_space_used", "total space used"));
    ?>
", sortable:true, formatter:YAHOO.widget.DataTable.formatSize},
                                {key:"totalFiles", label:"<?php 
    echo UCWords(t("total_files", "total files"));
    ?>
", sortable:true},
                                {key:"action", label:"<?php 
    echo UCWords(t("action", "action"));
    ?>
", sortable:false}
                            ];

                            var myDataSource = new YAHOO.util.DataSource(mfScripts.settingsTable.Data.configData);
                            myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
                            myDataSource.responseSchema = {
                                fields: ["id","serverLabel","serverType","ipAddress","statusLabel","storagePath","totalFileSize","totalFiles","action"]
                            };

                            var myDataTable = new YAHOO.widget.DataTable("cellediting", myColumnDefs, myDataSource, {selectionMode:"single"});

                            myDataTable.subscribe("rowMouseoverEvent", myDataTable.onEventHighlightRow);
                            myDataTable.subscribe("rowMouseoutEvent", myDataTable.onEventUnhighlightRow);
                            myDataTable.subscribe("rowClickEvent", myDataTable.onEventSelectRow);
 function widget($args, $instance)
 {
     // Get values
     extract($args);
     // Get Title,Location,Size,
     $title = apply_filters('widget_title', $instance['title']);
     #      	$title = htmlspecialchars($instance['title'], ENT_QUOTES);
     $tflag = htmlspecialchars($instance['tflag'], ENT_QUOTES);
     $transparentflag = htmlspecialchars($instance['transparentflag'], ENT_QUOTES);
     $ampmflag = htmlspecialchars($instance['ampmflag'], ENT_QUOTES);
     $country = htmlspecialchars($instance['country'], ENT_QUOTES);
     $state = htmlspecialchars($instance['state'], ENT_QUOTES);
     $country_name = htmlspecialchars($instance['country_name'], ENT_QUOTES);
     $state_name = htmlspecialchars($instance['state_name'], ENT_QUOTES);
     $city = htmlspecialchars($instance['city'], ENT_QUOTES);
     $size = htmlspecialchars($instance['size'], ENT_QUOTES);
     $typeflag = htmlspecialchars($instance['typeflag'], ENT_QUOTES);
     $text_color = htmlspecialchars($instance['text_color'], ENT_QUOTES);
     $border_color = htmlspecialchars($instance['border_color'], ENT_QUOTES);
     $background_color = htmlspecialchars($instance['background_color'], ENT_QUOTES);
     echo $before_widget;
     // Output title
     $title = UCWords($title);
     echo $before_title . $after_title;
     // Output Clock
     $target_url = "https://localtimes.info/{$country_name}/";
     if ($state_name != "") {
         $target_url .= $state_name . "/";
     }
     $target_url .= $city . "/";
     $target_url = str_replace(" ", "_", $target_url);
     $country_name = str_replace(" ", "+", $country_name);
     $city = str_replace(" ", "+", $city);
     $country_code = strtolower($country);
     if ($state_name != "") {
         $province_string = "&province=" . $state_name;
     }
     $widget_call_string = 'https://localtimes.info/wp_clock.php?country=' . $country_name;
     $widget_call_string .= $province_string . '&city=' . $city;
     $transparent_string = "&hbg=0";
     if ($transparentflag == 1) {
         $transparent_string = "&hbg=1";
         $background_color = "";
     }
     $ampm_string = "&ham=1";
     if ($ampmflag == 1) {
         $ampm_string = "&ham=0";
     }
     if ($tflag != 1) {
         $noscript_start = "<noscript>";
         $noscript_end = "</noscript>";
     }
     echo '<!-Local Time Clock widget - HTML code - localtimes.info --><div style="margin:15px 0px 0px 0px">';
     echo $noscript_start . '<div align="center" style="width:140px;border:1px solid #ccc;background:' . $background_color . ' ;color:' . $text_color . ' ;font-weight:bold">';
     echo '<a style="padding:2px 1px;margin:2px 1px;font-size:13px;line-height:16px;font-family:arial;text-decoration:none;color:' . $text_color . ' ;" href="' . $target_url . '">';
     echo '<img src="https://localtimes.info/images/countries/' . $country_code . '.png" border=0 style="border:0;margin:0;padding:0">&nbsp;&nbsp;' . $title . '</a></div>' . $noscript_end;
     $text_color = str_replace("#", "", $text_color);
     $background_color = str_replace("#", "", $background_color);
     $border_color = str_replace("#", "", $border_color);
     $widget_call_string .= '&cp3_Hex=' . $border_color . '&cp2_Hex=' . $background_color . '&cp1_Hex=' . $text_color . $transparent_string . $ampm_string . '&fwdt=' . $size;
     if ($typeflag == 1) {
         $typeflag = 1000;
     }
     $widget_call_string .= "&widget_number={$typeflag}";
     echo '<script type="text/javascript" src="' . $widget_call_string . '"></script></div><!-end of code-->';
     echo $after_widget;
 }
    function widget($args, $instance)
    {
        // Get values
        extract($args);
        // Extract value from vars
        $currency_code = htmlspecialchars($instance['currency_code'], ENT_QUOTES);
        $currency_name = htmlspecialchars($instance['currency_name'], ENT_QUOTES);
        $title = $currency_name;
        $country_code = htmlspecialchars($instance['country_code'], ENT_QUOTES);
        $length = htmlspecialchars($instance['length'], ENT_QUOTES);
        $layout = htmlspecialchars($instance['layout'], ENT_QUOTES);
        $length = htmlspecialchars($instance['length'], ENT_QUOTES);
        $width = htmlspecialchars($instance['width'], ENT_QUOTES);
        $default_amount = htmlspecialchars($instance['default_amount'], ENT_QUOTES);
        $default_from = htmlspecialchars($instance['default_from'], ENT_QUOTES);
        $text_color = htmlspecialchars($instance['text_color'], ENT_QUOTES);
        $border_color = htmlspecialchars($instance['border_color'], ENT_QUOTES);
        $background_color = htmlspecialchars($instance['background_color'], ENT_QUOTES);
        $transparentflag = htmlspecialchars($instance['transparentflag'], ENT_QUOTES);
        $tflag = htmlspecialchars($instance['tflag'], ENT_QUOTES);
        $default_to = htmlspecialchars($instance['default_to'], ENT_QUOTES);
        if ($transparentflag == "1") {
            $background_color = "";
            $border_color = "";
        }
        if ($currency_code) {
            $length = "medium";
        }
        $text_color = str_replace("#", "", $text_color);
        // Output calculator
        $widget_call_string = 'https://fx-rate.net/wp_converter.php?';
        if ($currency_code) {
            $widget_call_string .= 'currency=' . $currency_code . "&";
        }
        $widget_call_string .= "size=" . $length;
        $widget_call_string .= "&layout=" . $layout;
        $widget_call_string .= "&amount=" . $default_amount;
        $widget_call_string .= "&tcolor=" . $text_color;
        if (!empty($default_from)) {
            $widget_call_string .= "&default_pair=" . $default_from . "/" . $default_to;
        }
        $country_code = strtolower($country_code);
        $plugin_url = trailingslashit(get_bloginfo('wpurl')) . PLUGINDIR . '/' . dirname(plugin_basename(__FILE__));
        $image_url = $plugin_url . '/countries/' . $country_code . '.png';
        $calc_label = strtoupper(substr($layout, 0, 1));
        if ($length == "short") {
            $calc_label .= "S";
        }
        if ($currency_code) {
            $target_url = "https://fx-rate.net/{$currency_code}/";
            $flag_string = '<img style="margin:0;padding:0;border:0;" src="' . $image_url . '" border=0 >&nbsp;<b>';
            $flag_string2 = '</b>';
            $title = UCWords($currency_name) . " Converter";
            $calc_label .= "1";
        } else {
            $target_url = "https://fx-rate.net/";
            $title = "Currency Converter";
        }
        $tsize = 12;
        if ($layout == "vertical" && $length == "short") {
            $tsize = 10;
        }
        if ($tflag != 1) {
            $noscript_start = "<noscript>";
            $noscript_end = "</noscript>";
        }
        #
        #		OUTPUT HTML
        #
        echo $before_widget;
        // Output title
        echo $before_title . $after_title;
        echo '<!-Currency Converter widget - HTML code - fx-rates.net -->
	     <div  style="width:' . $width . 'px; background-color:' . $background_color . ';border:2px solid #888;text-align:center;margin: auto; padding: 0px;margin-top:0!important">';
        echo $noscript_start;
        echo '<div style="margin: 0px; padding: 0px;text-align:center;align:center;background-color:' . $border_color . ';border-bottom:1px solid #888;width:100%">
	     <a class="' . $calc_label . 'label" 
	     style="font-size:' . $tsize . 'px!important;line-height:16px!important;font-family:arial;text-weight:bold;margin-bottom:6px;text-decoration:none;color:#' . $text_color . '" href="' . $target_url . '">';
        echo $flag_string;
        echo $title . $flag_string2 . '</a></div>';
        echo $noscript_end;
        echo '<script type="text/javascript" src="' . $widget_call_string . '"></script></div><!-end of code-->';
        echo $after_widget;
    }
Esempio n. 14
0
function my_currency_converter($args)
{
    // Get values
    extract($args);
    $options = get_option('currency_converter');
    // Extract value from vars
    $currency_code = htmlspecialchars($options['currency_code'], ENT_QUOTES);
    $currency_name = htmlspecialchars($options['currency_name'], ENT_QUOTES);
    $title = $currency_name;
    $country_code = htmlspecialchars($options['country_code'], ENT_QUOTES);
    $length = htmlspecialchars($options['length'], ENT_QUOTES);
    $layout = htmlspecialchars($options['layout'], ENT_QUOTES);
    $length = htmlspecialchars($options['length'], ENT_QUOTES);
    $width = htmlspecialchars($options['width'], ENT_QUOTES);
    $default_amount = htmlspecialchars($options['default_amount'], ENT_QUOTES);
    $default_from = htmlspecialchars($options['default_from'], ENT_QUOTES);
    $default_to = htmlspecialchars($options['default_to'], ENT_QUOTES);
    $text_color = htmlspecialchars($options['text_color'], ENT_QUOTES);
    $border_color = htmlspecialchars($options['border_color'], ENT_QUOTES);
    $background_color = htmlspecialchars($options['background_color'], ENT_QUOTES);
    $transparentflag = htmlspecialchars($options['transparentflag'], ENT_QUOTES);
    if ($transparentflag == "1") {
        $background_color = "";
        $border_color = "";
    }
    if ($currency_code) {
        $length = "medium";
    }
    $text_color = str_replace("#", "", $text_color);
    // Output calculator
    $widget_call_string = 'http://fx-rate.net/wp_converter.php?';
    if ($currency_code) {
        $widget_call_string .= 'currency=' . $currency_code . "&";
    }
    $widget_call_string .= "size=" . $length;
    $widget_call_string .= "&layout=" . $layout;
    $widget_call_string .= "&amount=" . $default_amount;
    $widget_call_string .= "&tcolor=" . $text_color;
    $widget_call_string .= "&default_pair=" . $default_from . "/" . $default_to;
    $country_code = strtolower($country_code);
    $image_url = 'http://fx-rate.net/images/countries/' . $country_code . '.png';
    $calc_label = strtoupper(substr($layout, 0, 1));
    if ($length == "short") {
        $calc_label .= "S";
    }
    if ($currency_code) {
        $target_url = "http://fx-rate.net/{$currency_code}/";
        $flag_string = '<img style="margin:0;padding:0;border:0;" src="http://fx-rate.net/images/countries/' . $country_code . '.png" border=0 >&nbsp;<b>';
        $flag_string2 = '</b>';
        $title = UCWords($currency_name) . " Converter";
        $calc_label .= "1";
    } else {
        $target_url = "http://fx-rate.net/";
        $title = "Currency Converter";
    }
    $tsize = 12;
    if ($layout == "vertical" && $length == "short") {
        $tsize = 10;
    }
    echo '
	<div  style="width:' . $width . 'px;border:2px solid #888;text-align:center;margin: 0px; padding: 0px;margin-top:10px!important">';
    echo '<div style="margin: 0px; padding: 0px;text-align:center;align:center;background-color:' . $border_color . ';border-bottom:1px solid #888;width:100%">';
    echo $flag_string;
    echo $title . $flag_string2;
    echo '<script type="text/javascript" src="' . $widget_call_string . '"></script></div><!-end of code-->';
}
                                <a href="<?php 
echo $file->getStatisticsUrl();
?>
" target="_blank"><?php 
echo $file->getStatisticsUrl();
?>
</a>
                            </td>
                        </tr>
                        <?php 
if ($showAll == true) {
    ?>
                        <tr>
                            <td class="first">
                                <?php 
    echo UCWords(t('delete_file', 'delete file'));
    ?>
:
                            </td>
                            <td>
                                <a href="<?php 
    echo $file->getDeleteUrl();
    ?>
" target="_blank"><?php 
    echo $file->getDeleteUrl();
    ?>
</a>
                            </td>
                        </tr>
                        <?php 
}
require_once 'includes/master.inc.php';
/* setup page */
define("PAGE_NAME", t("register_complete_page_name", "Registration Completed"));
define("PAGE_DESCRIPTION", t("register_complete_meta_description", "Your registration has been completed."));
define("PAGE_KEYWORDS", t("register_complete_meta_keywords", "registration, completed, file, hosting, site"));
require_once '_header.php';
?>

<div class="contentPageWrapper">

    <!-- main section -->
    <div class="pageSectionMain ui-corner-all">
        <div class="pageSectionMainInternal">
            <div id="pageHeader">
                <h2><?php 
echo UCWords(t('register_account_complete', 'Register Account - Complete'));
?>
</h2>
            </div>
            <div>
                <p class="introText">
                    <strong><?php 
echo t("register_complete_sub_title", "Thank you for registering!");
?>
</strong><br/><br/>
                    <?php 
echo t("register_complete_main_text", "We've sent an email to your registered email address with your access password. " . "Please check your spam filters to ensure emails from this site get through. ");
?>
<br/><br/>
                    <?php 
echo t("register_complete_email_from", "Emails from this site are sent from ");