get_theme_url();
?>
/css/media-queries.css" rel="stylesheet">
	<link href="<?php 
get_theme_url();
?>
/css/menufication.css" rel="stylesheet">
	<link href="<?php 
get_theme_url();
?>
/css/reset.css" rel="stylesheet">
	<link href="<?php 
get_theme_url();
?>
/style.css?v=<?php 
echo get_site_version();
?>
" rel="stylesheet">


	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />


	<?php 
get_header();
?>
</head>

<!-- <body <?php 
/*body_class(); */
?>
Example #2
0
/**
 * check gs version is Beta
 *
 * @since  3.3.0
 * @return boolean true if beta release
 */
function isBeta()
{
    return strPos(get_site_version(false), "b");
}
Example #3
0
function gs_anonymousdata()
{
    #grab data from this installation
    if (isset($_POST['preview'])) {
        global $LANG, $TIMEZONE, $SITEURL, $live_plugins, $thisfile_anony;
        $missing_modules = array();
        $php_modules = get_loaded_extensions();
        if (!in_arrayi('curl', $php_modules)) {
            $missing_modules[] = 'curl';
            $email_not_curl = true;
        } else {
            $email_not_curl = false;
        }
        if (!in_arrayi('gd', $php_modules)) {
            $missing_modules[] = 'GD';
        }
        if (!in_arrayi('zip', $php_modules)) {
            $missing_modules[] = 'ZipArchive';
        }
        if (!in_arrayi('SimpleXML', $php_modules)) {
            $missing_modules[] = 'SimpleXML';
        }
        if (function_exists('apache_get_modules')) {
            if (!in_arrayi('mod_rewrite', apache_get_modules())) {
                $missing_modules[] = 'mod_rewrite';
            }
        }
        $lastModified = @filemtime(GSDATAOTHERPATH . '.htaccess');
        if ($lastModified == NULL) {
            $lastModified = filemtime(utf8_decode(GSDATAOTHERPATH . '.htaccess'));
        }
        $preview_data = @new SimpleXMLExtended('<data></data>');
        $preview_data->addChild('submission_date', date('c'));
        $preview_data->addChild('getsimple_version', get_site_version(false));
        $preview_data->addChild('language', $LANG);
        $preview_data->addChild('timezone', $TIMEZONE);
        $preview_data->addChild('php_version', PHP_VERSION);
        $preview_data->addChild('server_type', PHP_OS);
        $preview_data->addChild('modules_missing', json_encode($missing_modules));
        $preview_data->addChild('number_pages', folder_items(GSDATAPAGESPATH) - 1);
        $preview_data->addChild('number_plugins', count($live_plugins));
        $preview_data->addChild('number_files', count(glob_recursive(GSDATAUPLOADPATH . '*')));
        $preview_data->addChild('number_themes', folder_items(GSTHEMESPATH));
        $preview_data->addChild('number_backups', count(getFiles(GSBACKUPSPATH . 'zip')));
        $preview_data->addChild('number_users', folder_items(GSUSERSPATH) - 1);
        $preview_data->addChild('domain_tld', get_tld_from_url($SITEURL));
        $preview_data->addChild('install_date', date('m-d-Y', $lastModified));
        $preview_data->addChild('category', $_POST['category']);
        $preview_data->addChild('link_back', $_POST['link_back']);
        XMLsave($preview_data, GSDATAOTHERPATH . 'anonymous_data.xml');
    }
    # post data to server
    if (isset($_POST['send'])) {
        global $thisfile_anony;
        $xml = file_get_contents(GSDATAOTHERPATH . 'anonymous_data.xml');
        $success = i18n_r($thisfile_anony . '/ANONY_SUCCESS');
        $php_modules = get_loaded_extensions();
        if (in_arrayi('curl', $php_modules)) {
            $ch = curl_init();
            curl_setopt($ch, CURLOPT_TIMEOUT, 4);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($ch, CURLOPT_URL, 'http://get-simple.info/api/anonymous/?data=' . urlencode($xml));
            curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: text/xml'));
            $result = curl_exec($ch);
            curl_close($ch);
        } else {
            sendmail('*****@*****.**', 'Anonymous Data Submission', $xml);
        }
    }
    global $thisfile_anony;
    ?>
	<style>
		form#anondata p {margin-bottom:5px;}
		form#anondata label {display:block;width:220px;float:left;line-height:35px;}
		form#anondata select.text {width:auto;float:left;}
	</style>
	<h3><?php 
    i18n($thisfile_anony . '/ANONY_TITLE');
    ?>
</h3>
	
	<?php 
    if (isset($success)) {
        echo '<p style="color:#669933;"><b>' . $success . '</b></p>';
    }
    ?>
	
	<form method="post" id="anondata" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
		
		<?php 
    if (isset($preview_data)) {
        ?>
			<p><?php 
        i18n($thisfile_anony . '/ANONY_CONFIRM');
        ?>
</p>
			<div class="unformatted"><code><?php 
        echo htmlentities(formatXmlString(file_get_contents(GSDATAOTHERPATH . 'anonymous_data.xml')));
        ?>
</code></div>
			<p class="submit"><br /><input type="submit" class="submit" value="<?php 
        i18n($thisfile_anony . '/ANONY_SEND_BTN');
        ?>
" name="send" /> &nbsp;&nbsp;<?php 
        i18n('OR');
        ?>
&nbsp;&nbsp; <a class="cancel" href="plugins.php?cancel"><?php 
        i18n('CANCEL');
        ?>
</a></p>		
		<?php 
    } else {
        ?>
 
			<p><?php 
        i18n($thisfile_anony . '/ANONY_PARAGRAPH');
        ?>
</p>
			<p><?php 
        i18n($thisfile_anony . '/ANONY_PARAGRAPH2');
        ?>
</p>
			<p class="clearfix" ><label><?php 
        i18n($thisfile_anony . '/ANONY_CATEGORY');
        ?>
:</label>
					<select name="category" class="text">
						<option value=""></option>
						<option value="Arts"><?php 
        i18n($thisfile_anony . '/ANONY_ARTS');
        ?>
</option>
						<option value="Business"><?php 
        i18n($thisfile_anony . '/ANONY_BUSINESS');
        ?>
</option>
						<option value="Children"><?php 
        i18n($thisfile_anony . '/ANONY_CHILDREN');
        ?>
</option>
						<option value="Computer &amp; Internet"><?php 
        i18n($thisfile_anony . '/ANONY_INTERNET');
        ?>
</option>
						<option value="Culture &amp; Religion"><?php 
        i18n($thisfile_anony . '/ANONY_RELIGION');
        ?>
</option>
						<option value="Education"><?php 
        i18n($thisfile_anony . '/ANONY_EDUCATION');
        ?>
</option>
						<option value="Employment"><?php 
        i18n($thisfile_anony . '/ANONY_EMPLOYMENT');
        ?>
</option>
						<option value="Entertainment"><?php 
        i18n($thisfile_anony . '/ANONY_ENTERTAINMENT');
        ?>
</option>
						<option value="Money &amp; Finance"><?php 
        i18n($thisfile_anony . '/ANONY_FINANCE');
        ?>
</option>
						<option value="Food"><?php 
        i18n($thisfile_anony . '/ANONY_FOOD');
        ?>
</option>
						<option value="Games"><?php 
        i18n($thisfile_anony . '/ANONY_GAMES');
        ?>
</option>
						<option value="Government"><?php 
        i18n($thisfile_anony . '/ANONY_GOVERNMENT');
        ?>
</option>
						<option value="Health &amp; Fitness"><?php 
        i18n($thisfile_anony . '/ANONY_HEALTHFITNESS');
        ?>
</option>
						<option value="HighTech"><?php 
        i18n($thisfile_anony . '/ANONY_HIGHTECH');
        ?>
</option>
						<option value="Hobbies &amp; Interests"><?php 
        i18n($thisfile_anony . '/ANONY_HOBBIES');
        ?>
</option>
						<option value="Law"><?php 
        i18n($thisfile_anony . '/ANONY_LAW');
        ?>
</option>
						<option value="Life Family Issues"><?php 
        i18n($thisfile_anony . '/ANONY_LIFEFAMILY');
        ?>
</option>
						<option value="Marketing"><?php 
        i18n($thisfile_anony . '/ANONY_MARKETING');
        ?>
</option>
						<option value="Media"><?php 
        i18n($thisfile_anony . '/ANONY_MEDIA');
        ?>
</option>
						<option value="Misc"><?php 
        i18n($thisfile_anony . '/ANONY_MISC');
        ?>
</option>
						<option value="Movies &amp; Television"><?php 
        i18n($thisfile_anony . '/ANONY_MOVIES');
        ?>
</option>
						<option value="Music &amp; Radio"><?php 
        i18n($thisfile_anony . '/ANONY_MUSIC');
        ?>
</option>
						<option value="Nature"><?php 
        i18n($thisfile_anony . '/ANONY_NATURE');
        ?>
</option>
						<option value="Non-Profit"><?php 
        i18n($thisfile_anony . '/ANONY_NONPROFIT');
        ?>
</option>
						<option value="Personal Homepages"><?php 
        i18n($thisfile_anony . '/ANONY_PERSONAL');
        ?>
</option>
						<option value="Pets"><?php 
        i18n($thisfile_anony . '/ANONY_PETS');
        ?>
</option>
						<option value="Home &amp; Garden"><?php 
        i18n($thisfile_anony . '/ANONY_HOMEGARDEN');
        ?>
</option>
						<option value="Real Estate"><?php 
        i18n($thisfile_anony . '/ANONY_REALESTATE');
        ?>
</option>
						<option value="Science &amp; Technology"><?php 
        i18n($thisfile_anony . '/ANONY_SCIENCE');
        ?>
</option>
						<option value="Shopping &amp; Services"><?php 
        i18n($thisfile_anony . '/ANONY_SHOPPING');
        ?>
</option>
						<option value="Society"><?php 
        i18n($thisfile_anony . '/ANONY_SOCIETY');
        ?>
</option>
						<option value="Sports"><?php 
        i18n($thisfile_anony . '/ANONY_SPORTS');
        ?>
</option>
						<option value="Tourism"><?php 
        i18n($thisfile_anony . '/ANONY_TOURISM');
        ?>
</option>
						<option value="Transportation"><?php 
        i18n($thisfile_anony . '/ANONY_TRANSPORTATION');
        ?>
</option>
						<option value="Travel"><?php 
        i18n($thisfile_anony . '/ANONY_TRAVEL');
        ?>
</option>
						<option value="X-rated"><?php 
        i18n($thisfile_anony . '/ANONY_XRATED');
        ?>
</option>
					</select>
			</p>
			<p class="clearfix" ><label><?php 
        i18n($thisfile_anony . '/ANONY_LINK');
        ?>
</label><select class="text" name="link_back"><option></option><option value="yes" ><?php 
        i18n($thisfile_anony . '/ANONY_YES');
        ?>
</option><option value="no" ><?php 
        i18n($thisfile_anony . '/ANONY_NO');
        ?>
</option></select></p>
			<p style="color:#cc0000;font-size:11px;" >* <?php 
        i18n($thisfile_anony . '/ANONY_DISCLAIMER');
        ?>
</p>
			<p class="submit"><br /><input type="submit" class="submit" value="<?php 
        i18n($thisfile_anony . '/ANONY_PREVIEW_BTN');
        ?>
" name="preview" /> &nbsp;&nbsp;<?php 
        i18n('OR');
        ?>
&nbsp;&nbsp; <a class="cancel" href="plugins.php?cancel"><?php 
        i18n('CANCEL');
        ?>
</a></p>
		<?php 
    }
    ?>
	</form>

	<?php 
}
Example #4
0
/**
 * @depreciated as of 2.04
 */
function return_site_ver()
{
    return get_site_version(FALSE);
}
Example #5
0
function DM_PE_getPages($parent, $menu, $level)
{
    global $pagesSorted;
    $items = array();
    foreach ($pagesSorted as $page) {
        if ($page['parent'] == $parent) {
            $items[(string) $page['url']] = $page;
        }
    }
    $toggleMenu = get_nonce("menu", "toggle.php");
    $togglePrivate = get_nonce("private", "toggle.php");
    $gsVersion = get_site_version(false);
    if (count($items) > 0) {
        foreach ($items as $page) {
            $dash = "";
            if ($page['parent'] != '') {
                $page['parent'] = $page['parent'] . "/";
            }
            for ($i = 0; $i <= $level - 1; $i++) {
                if ($i != $level - 1) {
                    $dash .= '<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>';
                } else {
                    $dash .= '<span>&nbsp;&nbsp;&ndash;&nbsp;&nbsp;&nbsp;</span>';
                }
            }
            $delNonce = get_nonce("delete", "deletefile.php");
            $cloneNonce = get_nonce("clone", "pages.php");
            $menuNonce = get_nonce("menu", "toggle.php");
            $privateNonce = get_nonce("private", "toggle.php");
            $menu .= '<tr class="hover" id="tr-' . $page['url'] . '" >';
            if ($page['title'] == '') {
                $page['title'] = '[No Title] &nbsp;&raquo;&nbsp; <em>' . $page['url'] . '</em>';
            }
            if ($page['menuStatus'] != '') {
                $page['menuStatus'] = ' <sup>[' . i18n_r('MENUITEM_SUBTITLE') . ']</sup>';
            } else {
                $page['menuStatus'] = '';
            }
            if ($page['private'] != '') {
                $page['private'] = ' <sup>[' . i18n_r('PRIVATE_SUBTITLE') . ']</sup>';
            } else {
                $page['private'] = '';
            }
            if ($page['url'] == 'index') {
                $homepage = ' <sup>[' . i18n_r('HOMEPAGE_SUBTITLE') . ']</sup>';
            } else {
                $homepage = '';
            }
            $menu .= '<td class="pagetitle">' . $dash . '<a title="' . i18n_r('EDITPAGE_TITLE') . ': ' . cl($page['title']) . '" href="edit.php?id=' . $page['url'] . '" >' . cl($page['title']) . '</a><span class="showstatus toggle" >' . $homepage . $page['menuStatus'] . $page['private'] . '</span></td>';
            $menu .= '<td style="width:80px;text-align:left;" ><span>' . shtDate($page['pubDate']) . '</span></td>';
            $menu .= '<td style="width:24px;text-align:right;" >';
            /**
            			$menu .= '<a href="edit.php?id='.$page['url'].'"><img src="../plugins/DM_PE_pageedit/images/document_edit.gif" title="Edit Page" alt="Edit Page" /></a>&nbsp;'; 
            			$menu .= '<a href="edit.php?parent='.$page['url'].'"><img src="../plugins/DM_PE_pageedit/images/document_right.gif" title="Create Child Page" alt="Create Child Page" /></a>&nbsp;'; 
            			$menu .= '<a href="pages.php?id='.$page['url'].'&action=clone&nonce='.$cloneNonce.'"><img src="../plugins/DM_PE_pageedit/images/documents_duplicate.gif" title="Clone Page" alt="Clone Page" /></a>&nbsp;';
            				 
            			
            			if ($page['menuStatus'] != '' ) {
            				$menu .= '<a href="../plugins/DM_PE_pageedit/toggle.php?func=menu&id='.$page['url'].'&nonce='.$menuNonce.'" class="toggleMenu"><img src="../plugins/DM_PE_pageedit/images/menu.gif" title="Toggle Menu Off" alt="Toggle Menu Off" /></a>&nbsp;'; 	
            			} else {
            				$menu .= '<a href="../plugins/DM_PE_pageedit/toggle.php?func=menu&id='.$page['url'].'&nonce='.$menuNonce.'" class="toggleMenu"><img src="../plugins/DM_PE_pageedit/images/menu_off.gif" title="Toggle Menu On" alt="Toggle Menu On" /></a>&nbsp;'; 					
            			}
            			
            			if ($page['private'] != '' ) {
            				$menu .= '<a href="../plugins/DM_PE_pageedit/toggle.php?func=private&id='.$page['url'].'&nonce='.$privateNonce.'" class="togglePrivate"><img src="../plugins/DM_PE_pageedit/images/security_off.gif" title="Toggle Private On" alt="Toggle Private On" /></a>&nbsp;'; 	
            			} else {
            				$menu .= '<a href="../plugins/DM_PE_pageedit/toggle.php?func=private&id='.$page['url'].'&nonce='.$privateNonce.'" class="togglePrivate"><img src="../plugins/DM_PE_pageedit/images/security.gif" title="Toggle Private Off" alt="Toggle Private Off" /></a>&nbsp;'; 					
            			}
            			$menu .= '<a title="'.i18n_r('VIEWPAGE_TITLE').': '. cl($page['title']) .'" target="_blank" href="'. find_url($page['url'],$page['parent']) .'"><img src="../plugins/DM_PE_pageedit/images/theme.gif" title="View Page" alt="View Page" /></a>&nbsp;'; 					
            			
            			if ($page['url'] != 'index' ) {
            			$menu .= '<a href="deletefile.php?id='.$page['url'].'&nonce='.$delNonce.'"  class="delconfirm" title="Delete Page: '.$page['url'].'"><img src="../plugins/DM_PE_pageedit/images/trash.gif" title="Delete Page" alt="Clone Page" /></a>'; 
            			} else {
            				$menu .= '';
            			}
            			**/
            $menu .= '<div class="dropdown">';
            $menu .= '<img src="images/icon_spacer.gif" alt="" class="sprite icon dropdownIcon ">';
            /*
            $menu .= '<ul class="dropdownmenu">';
            $menu .= '<li id="save-close" ><a href="#" >Save &amp; Close</a></li>';
            $menu .= '<li><a href="pages.php?id=test&amp;action=clone&amp;nonce=16992ac218003b7b85b536aa5523af78468ae4c2" >Clone</a></li>';
            $menu .= '<li id="cancel-updates" class="alertme"><a href="pages.php?cancel" >Cancel</a></li>';
            $menu .= '<li class="alertme" ><a href="deletefile.php?id=test&amp;nonce=b6ed4bcaf21d3a569ca66db6d2a39b9a30b5e8cb" >Delete</a></li>';
            $menu .= '</ul>';
            */
            $menu .= '</div>';
            $menu .= '</td>';
            $menu .= '</tr>';
            $menu = DM_PE_getPages((string) $page['url'], $menu, $level + 1);
        }
    }
    return $menu;
}