function drawTop($headcontent = false) { global $_josh, $page, $user; ob_start('browser_output'); error_debug('starting top', __FILE__, __LINE__); if ($_josh['db']['language'] == 'mysql') { url_header_utf8(); } if (empty($page['helptext'])) { $page['helptext'] = getString('help_empty'); } $return = draw_doctype() . draw_container('head', ($_josh['db']['language'] == 'mysql' ? draw_meta_utf8() : '') . draw_container('title', $page['title']) . draw_favicon(DIRECTORY_WRITE . '/favicon.png') . draw_css_src('/css/global.css', 'screen') . draw_css_src('/css/print.css', 'print') . draw_css_src('/css/ie.css', 'ie') . draw_css_src(DIRECTORY_WRITE . '/screen.css', 'screen') . lib_get('jquery') . draw_javascript_src() . draw_javascript_src('/js/global.js') . draw_css(' #left table.left td.head, #left div.display div.title { background-color:#' . $page['color'] . '; } #left table.table th.table_title, #left form fieldset legend span, #left table.navigation { background-color:#' . $page['color'] . '; } #left table.navigation tr, #left form fieldset div.admin, #left table td.hilite { background-color:#' . $page['hilite'] . '; } ') . draw_javascript(' function confirmDelete(id) { if (confirm("' . getString('are_you_sure') . '")) { var newloc = "' . url_query_add(array('action' => 'delete', 'delete_id' => 'replaceme'), false) . '"; location.href = newloc.replace("replaceme", id); } } function changeDept(id, user_id) { location.href="' . $_josh['request']['path_query'] . '&newDeptID=" + id + "&contactID=" + user_id; } ') . drawSyndicateLink('bb') . $headcontent); $return .= draw_body_open() . ' <div id="container"> ' . draw_div('banner', draw_img(DIRECTORY_WRITE . '/banner' . langExt() . '.png', $_SESSION['homepage'])) . ' <div id="left"> <div id="help"> <div id="help_buttons">' . draw_link($_SESSION['homepage'], getString('home'), false, 'left') . draw_link('javascript:helpShow(' . user() . ')', getString('help_show'), false, array('class' => 'right' . ($user['help'] ? ' hidden' : false), 'id' => 'show_help_btn')) . draw_link('javascript:helpHide(' . user() . ')', getString('help_hide'), false, array('class' => 'right' . (!$user['help'] ? ' hidden' : false), 'id' => 'hide_help_btn')); if ($_SESSION['is_admin']) { if ($page['id']) { $return .= draw_link('/a/admin/page.php?id=' . $page['id'], getString('page_edit_info'), false, 'right'); } else { $return .= draw_link('/a/admin/page.php?module_id=' . $page['module_id'] . '&modulette_id=' . $page['modulette_id'] . '&url=' . urlencode($_josh['request']['page']), 'Create Page Here', false, 'right'); } } $return .= '</div><div id="help_text"'; if (!$user['help']) { $return .= ' class="hidden"'; } $return .= '>' . $page['helptext'] . '</div></div>'; if ($_josh['request']['folder'] == 'helpdesk') { $return .= drawNavigationHelpdesk(); } $return .= drawNavigation(); $_josh['drawn']['top'] = true; error_debug('finished drawing top', __FILE__, __LINE__); return $return; }
<?php include '../../include.php'; echo draw_doctype(); echo draw_container('head', draw_meta_utf8() . draw_container('title', 'Newsletter')); ?> <body style="background-color:#fff;margin:0px;"> <div style="padding:15px;"> <table width="650" cellpadding="0" cellspacing="0" border="0" align="center" style="font-family:Arial,Helvetica,sans-serif; font-size:11px; line-height:16px;"> <tr> <td width="85" height="117"><img src="http://members.sitesofconscience.org/a/soc-newsletter/header1.jpg" alt="header1" width="85" height="117" border="0"/></td> <td width="5" bgcolor="#8dc13f"><img src="http://members.sitesofconscience.org/a/soc-newsletter/spacer.png" width="5" height="5" border="0"/></td> <td width="85" height="117"><img src="http://members.sitesofconscience.org/a/soc-newsletter/header2.jpg" alt="header1" width="85" height="117" border="0"/></td> <td width="5" bgcolor="#8dc13f"><img src="http://members.sitesofconscience.org/a/soc-newsletter/spacer.png" width="5" height="5" border="0"/></td> <td width="85" height="117"><img src="http://members.sitesofconscience.org/a/soc-newsletter/header3.jpg" alt="header1" width="85" height="117" border="0"/></td> <td width="5" bgcolor="#8dc13f"><img src="http://members.sitesofconscience.org/a/soc-newsletter/spacer.png" width="5" height="5" border="0"/></td> <td width="380" bgcolor="#3397ba" align="center"><img src="http://members.sitesofconscience.org/a/soc-newsletter/newsletter-logo.png" alt="logo" width="380" height="117"/></td> </tr> <tr><td colspan="7" bgcolor="#8dc13f" height="5"><img src="http://members.sitesofconscience.org/a/soc-newsletter/spacer.png" width="5" height="5" border="0"/></td></tr> <tr> <td colspan="3" valign="top" style="padding:8px;"> <!--left side bar--> <div style="margin:8px 0px 8px 0px;"> <div style="color:#fff; background-color:#8dc13f;font-size:12px;font-weight:bold;padding:3px 8px 3px 8px;">Memory Issues in the News</div> <ul style="list-style-type:none; margin:10px 0px 10px 0px; padding:0px;"> <li style="margin:0px 0px 5px 0px;padding:0px 0px 0px 8px;"><a style="color:#3397ba;" href="http://www.nytimes.com/2009/08/28/world/europe/28iht-moscow.html">Re-Stalinization of a Moscow Subway Station</a></li> <li style="margin:0px 0px 5px 0px;padding:0px 0px 0px 8px;"><a style="color:#3397ba;" href="http://www.google.com/hostednews/afp/article/ALeqM5jfpRI3pTnVJalXXbhQcyQmmOx5Kg">Russian Historians Fear Crackdown on Sensitive Research</a></li> <li style="margin:0px 0px 5px 0px;padding:0px 0px 0px 8px;"><a style="color:#3397ba;" href="http://www.nytimes.com/2009/10/31/world/europe/31russia.html?_r=2">Don't Gloss over Stalin's Crimes, Medvedev Says</a></li> <li style="margin:0px 0px 5px 0px;padding:0px 0px 0px 8px;"><a style="color:#3397ba;" href="http://www.latimes.com/news/nationworld/world/la-fg-russia-stalin2-2009nov02,0,2551543.story">Russia Reconsiders: Was Stalin Really so Bad?</a></li> <li style="margin:0px 0px 5px 0px;padding:0px 0px 0px 8px;"><a style="color:#3397ba;" href="http://women.timesonline.co.uk/tol/life_and_style/women/the_way_we_live/article6937923.ece">Russian Textbooks Attempt to Rewrite History</a></li>
<?php extract(joshlib()); function joshlib() { //look for joshlib at joshlib/index.php, ../joshlib/index.php, all the way down global $_josh; $count = substr_count($_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_NAME'], '/'); for ($i = 0; $i < $count; $i++) { if (@(include str_repeat('../', $i) . 'joshlib/index.php')) { return $_josh; } } die('Could not find Joshlib.'); } echo url_header_utf8() . draw_meta_utf8(); //echo language_translate('hello world', 'en', 'ru'); debug(); echo language_translate('<p><span class="source">Computerworld -</span> Multi-core processors for tablets and smartphones <a href="http://www.computerworld.com/s/article/9223324/Quad_core_chips_boost_tablet_price_vs._performance_battle">are being touted</a> by chip maker Nvidia and others at the <a href="http://www.computerworld.com/s/article/9223141/CES_2012_What_you_need_to_know">CES</a> trade show, but some in the industry question their value.</p><p>Some of the latest mobile operating systems, such as <a href="http://www.computerworld.com/s/article/9220605/Hands_on_Windows_Phone_7_Mango_edition_adds_features_polish_">Windows Phone 7.5 (Mango)</a>, aren\'t designed to support dual-core processors, analysts noted. At the same time, they said, most <a href="http://www.computerworld.com/s/topic/75/Smartphones">smartphone</a> and <a href="http://www.computerworld.com/s/article/9221711/Latest_on_tablets">tablet</a> applications don\'t need and can\'t benefit from dual-core or quad-core processing power, except for some video and games.</p><p>Given that fact, <a href="http://www.computerworld.com/s/article/9137060/Microsoft_Update_Latest_news_features_reviews_opinions_and_more">Microsoft</a> and its partner Nokia practically dismissed dual-core smartphones that are running Android and are built by various makers, including Samsung and HTC.</p><p>To emphasize the point, Microsoft set up a challenge at CES where Windows Phone Evangelist Ben Randolph bet $100 that his Windows Phone, an HTC Titan, would operate faster than any other smartphone in running apps, searching the Web and other functions.</p>', 'en', 'fr');
error_debug("<b>index.php</b> Login successful", __FILE__, __LINE__); $redirect = empty($_POST["goto"]) ? $_SESSION["homepage"] : $_POST["goto"]; } else { error_debug("<b>index.php</b> Login unsuccessful", __FILE__, __LINE__); $redirect = "/"; } } if ($redirect) { url_change($redirect); } url_header_utf8(); ?> <html> <head> <?php echo draw_meta_utf8(); ?> <title><?php echo getString("app_name"); ?> </title> <?php echo draw_favicon(DIRECTORY_WRITE . '/favicon.png'); ?> <style type="text/css"> <!-- body { background-color:#d3d3d3; margin:0px; padding:0px; width:100%; height:100%; font-family:verdana; font-size:11px; color:#444; line-height:19px; } #container { width:708px; height:334px; position:absolute; top:50%; left:50%; margin-left:-257px; margin-top:-167px; } #white { background-color:#ffffff; width:355px; height:296px; padding:18px 20px 20px 20px; position:relative; float:left; } #grey { background-color:#ededed; width:159px; height:314px; padding:10px; position:relative; margin-left:8px; float:left; }