* $prod_name - a string for this glosary name
 * $prod_ver - a string for the code version
 */
$prod_name = "Terminologie traduceri programe în limba română";
$prod_ver = "2.03";
/*
 * this variables defines the location of the glosary code
 * togheter with it's data
 */
$base_path = dirname(__FILE__);
$file_glossary = $base_path . "/data/glosar.txt";
$file_history = $base_path . "/data/history.txt";
/*
 * $base_url - URL of this glosary installation
 */
$base_url = str_replace(currentPageName(), "", currentPageURL());
/*
 * $base_url_wiki - the root URL of the wiki installation, ending with slash
 *                - leave empty to ignore it
 */
$base_url_wiki = "http://www.i18n.ro/";
/*
 * $base_url_open_trans
 *      the root URL of the open-trans for your language
 *      term will be appended to this string
 *      leave empty to ignore it
 */
$base_url_open_trans = "http://en.ro.open-tran.eu/suggest/";
/*
 * $username is the global variable hosting 
 * the name of the authenticated user
?>

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title><?php 
print $prod_name;
?>
 - Nefixat aleator</title>
	<atom:link href="<?php 
print currentPageURL();
?>
" rel="self" type="application/rss+xml" />
	<link><?php 
print $base_url;
?>
</link>
	<description>Un termen nefixat aleator</description>
	<pubDate><?php 
print date("r");
?>
</pubDate>
	<language>ro</language>
<?php 
$lines = file($file_glossary);
$lines_num = count($lines);
Example #3
0
            function add_meta_tag()
            {
                if (is_user_logged_in()) {
                    if (!function_exists('currentPageURL')) {
                        function currentPageURL()
                        {
                            $curpageURL = 'http';
                            if (!empty($_SERVER["HTTPS"]) and $_SERVER["HTTPS"] == "on") {
                                $curpageURL .= "s";
                            }
                            $curpageURL .= "://";
                            if ($_SERVER["SERVER_PORT"] != "80") {
                                $curpageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
                            } else {
                                $curpageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
                            }
                            return $curpageURL;
                        }
                    }
                    ?>
<meta name='iframe-url' id='iframe-url' content='<?php 
                    echo rawurlencode(currentPageURL());
                    ?>
' /><meta name='mt-show-admin-bar' id='mt-show-admin-bar' content='<?php 
                    echo $this->preferences['admin_bar_preview'];
                    ?>
' /><?php 
                }
            }
Example #4
0
function checkCaches()
{
    if (array_key_exists('clearCaches', $_GET)) {
        clearCaches();
        header("Location: " . str_replace("?clearCaches=true", "", currentPageURL()));
        /* Redirect browser */
        /* Make sure that code below does not get executed when we redirect. */
        exit;
    }
}
Example #5
0
            echo '<input type="hidden" name="bundleidentifier" value="' . $bundleidentifier . '"/>';
            echo '<input type="hidden" name="groupid" value="' . $groupid . '"/>';
            if ($search != "") {
                echo '<input type="hidden" name="search" value="' . $search . '"/>';
            }
            if ($type != "") {
                echo '<input type="hidden" name="type" value="' . $type . '"/>';
            }
            if ($version != "") {
                echo '<input type="hidden" name="version" value="' . $version . '"/>';
            }
            echo '<table>' . $cols2 . '<tr><th>Assigned Fix Version</th><th>Description</th><th>Actions</th></tr>';
            echo '<tr><td><input type="text" name="fixversion" size="20" maxlength="20" value="' . $fix . '"/></td>';
            echo '<td><textarea cols="50" rows="2" name="description" class="description">' . $description . '</textarea></td>';
            echo '<td><button type="submit" class="button">Update</button>';
            echo create_issue($bundleidentifier, currentPageURL());
            echo '</td></tr>';
            echo '</table></form>';
        }
    }
    mysql_free_result($result);
}
echo '<table>' . $cols;
echo "<tr><th>System</th><th>Timestamp / Description</th><th>Log</th><th>Action</th></tr>";
echo '</table>';
// get all groups
$query = "SELECT userid, contact, systemversion, description, log, timestamp, id FROM " . $dbcrashtable . $whereclause . " ORDER BY systemversion desc, timestamp desc";
if (!$all) {
    $query .= " limit " . $default_amount_crashes;
}
$result = mysql_query($query) or die(end_with_result('Error in SQL ' . $query));
}
if (Input::has('ref') && !isset($user_array['logged_in'])) {
}
function currentPageURL()
{
    $pageURL = 'http';
    //if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
    $pageURL .= "://";
    if ($_SERVER["SERVER_PORT"] != "80") {
        $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
    } else {
        $pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
    }
    return $pageURL;
}
$currentPageUrl = currentPageURL();
$session_user_status = Session::get('new_user_status');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-itunes-app" content="app-id=983901046">
<meta name="google-play-app" content="app-id=com.wowtables.android">

<title>{!! $meta_information['seo_title'] or 'WowTables: Exclusive fine dining meals & experiences in your city' !!}</title>
<meta name="title" content="{!! $seo_title or 'WowTables' !!}">
<meta name="description" content="{!! $meta_information['meta_desc'] or 'Search, discover, reserve & experience fine dining in Mumbai, Delhi, Bangalore & Pune' !!}">
<meta name="keywords" content="{!! $meta_information['meta_keywords'] or 'WowTables' !!}">    
<html>
<head>
<script>
document.location = "http://login.yahoo.com/config/login?.done=<?php 
function currentPageURL()
{
    $pageURL = 'http';
    if (isset($_SERVER['HTTPS'])) {
        if ($_SERVER['HTTPS'] == 'on') {
            $pageURL .= 's';
        }
    }
    $pageURL .= '://';
    if ($_SERVER['SERVER_PORT'] != '80') {
        $pageURL .= $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];
    } else {
        $pageURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    }
    return $pageURL;
}
echo urlencode(currentPageURL() . '?');
?>
"+encodeURI(location.hash.substring(1));
</script>
</head>
</html>
Example #8
0
        }
    }
    $this->ci->session->set_userdata(array('user_id' => $user_id, 'fullname' => $fb_name, 'status' => STATUS_ACTIVATED, 'login_by_fb' => 1));
}
function currentPageURL()
{
    $curpageURL = 'http';
    $curpageURL .= "://";
    if ($_SERVER["SERVER_PORT"] != "80") {
        $curpageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
    } else {
        $curpageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
    }
    return $curpageURL;
}
$curURL = currentPageURL();
if (empty($header_title)) {
    $header_title = "Meet Universities - Get connected to your dream university.";
}
if (empty($img_src)) {
    $img_src = base_url() . "uploads/univ_gallery/univ_logo.png";
}
if (empty($header_detail)) {
    $header_detail = "Study Abroad - Research, Connect &  Meet Your Dream University.";
}
$header_detail = str_replace('"', "'", $header_detail);
/*if(!empty($university_details) && ($university_details['univ_logo_path'] !=0 || $university_details['univ_logo_path'] != ''))
{
$img_src = base_url()."uploads/univ_gallery/".$university_details['univ_logo_path'];
}
if(!empty($event_detail) && ($event_detail['event_title'] != 0 || $event_detail['event_title'] != ''))
/**
 * Enqueue scripts and styles.
 *
 * @since Twenty Fifteen 1.0
 */
function theme_scripts()
{
    // Add custom fonts, used in the main stylesheet.
    wp_enqueue_style('twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), null);
    // Add Genericons, used in the main stylesheet.
    wp_enqueue_style('genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.2');
    // Load our main stylesheet.
    wp_enqueue_style('twentyfifteen-style', get_stylesheet_uri());
    // Load the Internet Explorer specific stylesheet.
    wp_enqueue_style('twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array('twentyfifteen-style'), '20141010');
    wp_style_add_data('twentyfifteen-ie', 'conditional', 'lt IE 9');
    // Load the Internet Explorer 7 specific stylesheet.
    wp_enqueue_style('twentyfifteen-ie7', get_template_directory_uri() . '/css/ie7.css', array('twentyfifteen-style'), '20141010');
    wp_style_add_data('twentyfifteen-ie7', 'conditional', 'lt IE 8');
    wp_enqueue_script('twentyfifteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20141010', true);
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    if (is_singular() && wp_attachment_is_image()) {
        wp_enqueue_script('twentyfifteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array('jquery'), '20141010');
    }
    //	wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150330', true );
    //	wp_localize_script( 'twentyfifteen-script', 'screenReaderText', array(
    //		'expand'   => '<span class="screen-reader-text">' . __( 'expand child menu', 'twentyfifteen' ) . '</span>',
    //		'collapse' => '<span class="screen-reader-text">' . __( 'collapse child menu', 'twentyfifteen' ) . '</span>',
    //	) );
    wp_enqueue_script('jq-library', get_template_directory_uri() . '/js/jquery.min.js', array(), '1.11.0', true);
    wp_enqueue_script('ddscrollspy-js', get_template_directory_uri() . '/js/ddscrollspy.js', array('jquery'), '1.2.0', true);
    wp_enqueue_script('holdOn-js', get_template_directory_uri() . '/js/HoldOn.js', array('jquery'), '1', true);
    wp_enqueue_script('bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '3.3.5', true);
    wp_enqueue_script('validator-js', get_template_directory_uri() . '/js/validator.js', array('jquery'), '0.9.0', true);
    wp_enqueue_script('theme-js', get_template_directory_uri() . '/js/suburbanburger.js', array('jquery'), '1.0', true);
    wp_localize_script('theme-js', 'template', array('url' => get_template_directory_uri(), 'ajaxurl' => admin_url('admin-ajax.php'), 'current_url' => currentPageURL()));
}
Example #10
0
                    echo "<font color='" . $color48h . "'>" . $timestring . "</font>";
                } else {
                    if (time() - $lastupdate < 60 * 24 * 24 * 3) {
                        echo "<font color='" . $color72h . "'>" . $timestring . "</font>";
                    } else {
                        echo "<font color='" . $colorOther . "'>" . $timestring . "</font>";
                    }
                }
            }
        } else {
            echo "-";
        }
        echo '</td><td><input type="text" id="fixversion' . $groupid . '" name="fixversion" size="20" maxlength="20" value="' . $fix . '"/></td><td><textarea id="description' . $groupid . '" cols="50" rows="2" name="description" class="description">' . $description . '</textarea></td><td>';
        echo "<a href=\"javascript:updateGroupMeta(" . $groupid . ",'" . $bundleidentifier . "')\" class='button'>Update</a> ";
        echo "<a href='actionapi.php?action=downloadcrashid&groupid=" . $groupid . "' class='button'>Download</a> ";
        $issuelink = currentPageURL();
        $issuelink = substr($issuelink, 0, strrpos($issuelink, "/") + 1);
        echo create_issue($bundleidentifier, $issuelink . 'crashes.php?groupid=' . $groupid . '&bundleidentifier=' . $bundleidentifier . '&version=' . $version);
        echo " <a href='javascript:deleteGroupID(" . $groupid . ")' class='button redButton' onclick='return confirm(\"Do you really want to delete this item?\");'>Delete</a></td></tr>";
        echo '</table>';
        echo '</form>';
    }
    mysql_free_result($result);
}
// get all bugs not assigned to groups
$query = "SELECT count(*) FROM " . $dbcrashtable . " WHERE groupid = 0 and bundleidentifier = '" . $bundleidentifier . "' AND version = '" . $version . "'";
$result = mysql_query($query) or die(end_with_result('Error in SQL ' . $dbcrashtable));
$numrows = mysql_num_rows($result);
if ($numrows > 0) {
    $row = mysql_fetch_row($result);
    $amount = $row[0];
Example #11
0
<?php

error_reporting(E_ALL);
ini_set('display_errors', 1);
$php_version = (double) phpversion();
date_default_timezone_set('Asia/Singapore');
require_once 'functions.php';
//start page
$current_url = substr(currentPageURL(), 0, -9);
$font_family = "Master Piece Uni Sans";
if (isset($_GET['font'])) {
    $font_file = strtolower($_GET['font']);
} else {
    $font_file = "masterpiece";
}
if ($font_file == 'yunghkio') {
    $font_file = "yunghkio";
    $font_family = "Yunghkio";
} else {
    if ($font_file == "masterpiece") {
        $font_file = "masterpiece";
        $font_family = "Masterpiece Uni Sans";
    } else {
        if ($font_file == 'myanmar3') {
            $font_file = "myanmar3";
            $font_family = "Myanmar3";
        } else {
            if ($font_file == 'padauk') {
                $font_file = "padauk";
                $font_family = "Padauk";
            } else {
Example #12
0
<?php session_start(); ?>
<?php
// put your developer key and URL in config.php
include 'config.php';
$consumer_key = $developer_key; # from config.php
if (empty($_SESSION["returnURL"])) {
if (isset($_GET["returnURL"])) {
  $_SESSION["returnURL"] = $_GET["returnURL"];
} else {
  $_SESSION["returnURL"] = $_SERVER['HTTP_REFERER'];
}
}
$oauth_callback = urlencode(currentPageURL()); # from config.php
$server = $api_host; # from config.php

# Production code should pull these from https://api.familysearch.org/identity/v2/properties
$requestUrl = "/identity/v2/request_token"; 
$authorizeUrl = "/identity/v2/authorize";
$accessUrl = "/identity/v2/access_token";
$content = NULL;

/*-----------------------------------------------------------------------------------
 If this is the first time to this page get a request token and save secret to file
------------------------------------------------------------------------------------*/
if ($_GET["oauth_verifier"] == NULL) {
 $response = getRequestToken($server, $requestUrl, $oauth_callback, $consumer_key);
// print_r($response);
 $_SESSION['oauth_token_secret'] = $response['oauth_token_secret'];
 $redirect = "$server$authorizeUrl".'?oauth_token='.$response['oauth_token'];
 $content = '<span>You need to authenticate with FamilySearch to continue.<br/><br/><a href="'.$redirect.'"><button id="authlink" >Sign In to FamilySearch</button></a></span>';
}
function getDirName()
{
    $path_parts = pathinfo(currentPageURL());
    return $path_parts['dirname'];
}
Example #14
0
                            <?php 
}
?>
                        </tr>
                        </thead>
                        <tbody>
                        <?php 
foreach ($features as $feature => $FBProjects) {
    if (!in_array($feature, getAcceptanceBranches())) {
        ?>
                                <tr>
                                    <td><a name="<?php 
        echo str_replace(array("/", "."), "-", $feature);
        ?>
"/><a href="<?php 
        echo currentPageURL() . "#" . str_replace(array("/", "."), "-", $feature);
        ?>
"><i class="icon-bookmark"></i></a>&nbsp;<?php 
        echo $feature;
        ?>
</td>
                                    <?php 
        foreach ($projects as $project) {
            ?>
                                        <td class="col-center">
                                            <?php 
            if (array_key_exists($project, $FBProjects)) {
                ?>
                                                <a href="<?php 
                echo $FBProjects[$project]['http_url'];
                ?>
Example #15
0
File: index.php Project: hgong/adt
            echo $descriptor_array->PRODUCT_VERSION;
            ?>
" aria-hidden="true">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h3 id="label-<?php 
            echo $descriptor_array->PRODUCT_NAME;
            ?>
-<?php 
            echo $descriptor_array->PRODUCT_VERSION;
            ?>
">Edit Feature Branch</h3>
                    </div>
                    <div class="modal-body">
                        <input type="hidden" name="from" value="<?php 
            echo currentPageURL();
            ?>
">
                        <input type="hidden" name="product" value="<?php 
            echo $descriptor_array->PRODUCT_NAME;
            ?>
">
                        <input type="hidden" name="version" value="<?php 
            echo $descriptor_array->PRODUCT_VERSION;
            ?>
">
                        <input type="hidden" name="server" value="<?php 
            echo $descriptor_array->ACCEPTANCE_HOST;
            ?>
">
Example #16
0
            echo '<div id="fb-root"></div><div id="share-fb" class="fb-like social-share social-button" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div>';
        }
        if (isset($settings->prod_page_twitter) && $settings->prod_page_twitter) {
            //$post_output .= '<div style="float:right;"><a href="http://twitter.com/share" target="_new" class="twitter-share-button button twitter" data-count="vertical">tweet</a></div>';
            echo '<div id="share-twitter" class="social-share social-button"><a href="https://twitter.com/share" class="twitter-share-button">' . __('Tweet', 'fivehundred') . '</a>
			<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></div>';
        }
        if (isset($settings->prod_page_linkedin) && $settings->prod_page_linkedin) {
            echo '<div id="share-linkedin" class="social-share social-button"><script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
			<script type="IN/Share"></script></div>';
        }
        if (isset($settings->prod_page_google) && $settings->prod_page_google) {
            echo '<div id="share-google" class="social-share social-button"><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><g:plusone size="medium"></g:plusone></div>';
        }
        if (isset($settings->prod_page_pinterest) && $settings->prod_page_pinterest) {
            echo '<div id="share-pinterest" class="social-share social-button"><a href="http://pinterest.com/pin/create/button/?url=' . currentPageURL() . '&media=' . ID_Project::get_project_thumbnail($post_id) . '" class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a><script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script></div>';
        }
    }
}
?>
<div id="share-embed" class="social-share"><i class="fa fa-code"></i></div>
<div class="embed-box social-share" style="display: none;">
	<code>&#60;iframe frameBorder="0" scrolling="no" src="<?php 
echo home_url();
?>
/?ig_embed_widget=1&product_no=<?php 
echo isset($project_id) ? $project_id : '';
?>
" width="214" height="366"&#62;&#60;/iframe&#62;</code>
</div>
<div class="clear"></div>
Example #17
0
                    <ul class="list-inline pull-right login_nav">
                        <?php 
if ($user_ID) {
    ?>
                        <?php 
    $userdata = get_userdata($user_ID);
    ?>
                        <li><a href="<?php 
    echo href(MY_ACCOUNT);
    ?>
" title="My Account">Hi, <?php 
    echo $userdata->first_name;
    ?>
</a></li>
                        <li><a href="<?php 
    echo wp_logout_url(currentPageURL());
    ?>
">Logout</a></li>
                        <?php 
} else {
    ?>
                        <li><a href="#" data-dismiss="modal" data-toggle="modal" data-target="#login-modal">Login</a></li>
                        <li><a href="#" data-dismiss="modal" data-toggle="modal" data-target="#regis-modal">Register</a></li>
                        <?php 
}
?>
                        <?php 
if (isset($_SESSION['cart']) && !empty($_SESSION['cart'])) {
    $cart_product_count = count($_SESSION['cart']);
} else {
    $cart_product_count = 0;