Exemplo n.º 1
0
function he_wall_include_footer_logic($page)
{
    global $smarty, $setting, $user, $owner, $url, $misc, $datetime, $database, $admin, $ads, $se_javascript, $lang_packlist, $global_plugins, $global_timezone;
    // GET LANGUAGES AVAILABLE IF NECESSARY
    if ($setting['setting_lang_anonymous'] == 1 || $setting['setting_lang_allow'] == 1 && $user->user_exists != 0) {
        $lang_packlist_raw = SECore::getLanguages();
        //$lang_packlist = SELanguage::list_packs();
        ksort($lang_packlist_raw);
        $lang_packlist = array_values($lang_packlist_raw);
    }
    $smarty->assign_by_ref('url', $url);
    $smarty->assign_by_ref('misc', $misc);
    $smarty->assign_by_ref('datetime', $datetime);
    $smarty->assign_by_ref('database', $database);
    $smarty->assign_by_ref('admin', $admin);
    $smarty->assign_by_ref('user', $user);
    $smarty->assign_by_ref('owner', $owner);
    $smarty->assign_by_ref('ads', $ads);
    $smarty->assign_by_ref('setting', $setting);
    $smarty->assign_by_ref('se_javascript', $se_javascript);
    $smarty->assign('lang_packlist', $lang_packlist);
    $smarty->assign('global_plugins', $global_plugins);
    $smarty->assign('global_page', $page);
    $smarty->assign('global_timezone', $global_timezone);
    $smarty->assign('global_language', SELanguage::info('language_id'));
    return $smarty->fetch($page, null, null, false);
}
Exemplo n.º 2
0
 function generateNotifys(&$notify_data)
 {
     $data =& $notify_data['notifys'];
     foreach ($data as $index => $notify_info) {
         $data[$index]['notify_text_output'] = sprintf(SELanguage::_get($notify_info['notify_desc']), $notify_info['notify_total'], $notify_info['notify_text'][0]);
     }
     return json_encode($notify_data);
 }
Exemplo n.º 3
0
 function edit($variable_id, $value, $language_id = NULL, $variable_type = LANGUAGE_INDEX_CUSTOM)
 {
     global $database;
     $instance = SELanguage::_init();
     if (empty($language_id)) {
         $language_id = SELanguage::info("language_id");
     }
     if (empty($instance->_indices[$variable_type])) {
         $variable_type = LANGUAGE_INDEX_CUSTOM;
     }
     $value = str_replace("'", "\\'", str_replace("\r\n", "", $value));
     // VARIABLE ID IS NONZERO
     if ($variable_id != 0) {
         // CHECK FOR EXISTING VALUE
         $resource = $database->database_query("SELECT NULL FROM se_languagevars WHERE languagevar_id='{$variable_id}' AND languagevar_language_id='{$language_id}' LIMIT 1");
         if (!$resource) {
             return FALSE;
         }
         // UPDATE EXISTING
         if ($database->database_num_rows($resource)) {
             $database->database_query("UPDATE se_languagevars SET languagevar_value='{$value}' WHERE languagevar_id='{$variable_id}' AND languagevar_language_id='{$language_id}' LIMIT 1");
         } else {
             $database->database_query("INSERT INTO se_languagevars (languagevar_id, languagevar_language_id, languagevar_value) VALUES ('{$variable_id}', '{$language_id}', '{$value}')");
         }
         return $variable_id;
     } else {
         // Insert new
         $int_min = isset($instance->_indices[$variable_type][0]) ? $instance->_indices[$variable_type][0] : 0;
         $int_max = isset($instance->_indices[$variable_type][1]) ? $instance->_indices[$variable_type][1] : 0;
         $resource = $database->database_query("SELECT MAX(languagevar_id)+1 FROM se_languagevars WHERE languagevar_id>={$int_min} AND languagevar_id<={$int_max}");
         $new_id = $database->database_fetch_array($resource);
         $new_id = $new_id[0];
         if (!$new_id && $int_min && $int_max) {
             $new_id = $int_min;
         } elseif (!$new_id) {
             return FALSE;
         }
         $database->database_query("INSERT INTO se_languagevars (languagevar_id, languagevar_language_id, languagevar_value) VALUES ('{$new_id}', '{$language_id}', '{$value}')");
         return $new_id;
     }
 }
Exemplo n.º 4
0
 function &getLanguages()
 {
     static $languages;
     if (!is_array($languages)) {
         $cache = SECache::getInstance('serial', array('lifetime' => 3600));
         // Get from cache
         if (is_object($cache)) {
             $languages = $cache->get('site_languages');
         }
         // Get from database
         if (!is_array($languages)) {
             //$database = SEDatabase::getInstance();
             //$resource = $database->database_query("SELECT * FROM se_languages ORDER BY language_default DESC");
             //$languages = $database->database_load_all_assoc('language_id');
             $languages = SELanguage::_languages();
             // Store in cache
             if (is_object($cache)) {
                 $cache->store($languages, 'site_languages');
             }
         }
     }
     return $languages;
 }
Exemplo n.º 5
0
$smarty->assign_by_ref('admin', $admin);
$smarty->assign_by_ref('user', $user);
$smarty->assign_by_ref('owner', $owner);
$smarty->assign_by_ref('ads', $ads);
$smarty->assign_by_ref('setting', $setting);
$smarty->assign_by_ref('se_javascript', $se_javascript);
$smarty->assign('lang_packlist', $lang_packlist);
$smarty->assign('notifys', $notify->notify_summary());
$smarty->assign('global_plugins', $global_plugins);
$smarty->assign('global_smoothbox', $global_smoothbox);
$smarty->assign('global_page', $page);
$smarty->assign('global_page_title', !empty($global_page_title) ? $global_page_title : NULL);
$smarty->assign('global_page_description', !empty($global_page_description) ? str_replace("\"", "'", $global_page_description) : NULL);
$smarty->assign('global_css', $global_css);
$smarty->assign('global_timezone', $global_timezone);
$smarty->assign('global_language', SELanguage::info('language_id'));
if (SE_DEBUG) {
    $_benchmark->end('shutdown');
    $smarty->assign('debug_uid', $_benchmark->getUid());
    $smarty->assign_by_ref('debug_benchmark_object', $_benchmark);
    $_benchmark->start('output');
}
// DISPLAY PAGE
$smarty->display("{$page}.tpl");
if (SE_DEBUG) {
    $_benchmark->end('output');
    $_benchmark->end('total');
    $smarty->assign('debug_benchmark', $_benchmark->getLog());
    $smarty->assign('debug_benchmark_total', $_benchmark->getTotalTime());
    // Save logging info
    file_put_contents('./log/' . $_benchmark->getUid() . '.html', $smarty->fetch('debug.tpl'));
<?php

/* Smarty version 2.6.14, created on 2010-03-27 23:15:50
   compiled from admin_footer.tpl */
SELanguage::load();
?>

</td>
</tr>
</table>

<br />
<br />

</body>
</html>
        ?>
'><?php 
        echo $this->_tpl_vars['birthdays'][$this->_sections['birthday_loop']['index']]['birthday_user_displayname'];
        ?>
</a>
            - <?php 
        echo $this->_tpl_vars['datetime']->cdate("M. d", $this->_tpl_vars['birthdays'][$this->_sections['birthday_loop']['index']]['birthday_date']);
        ?>

          </div>
        <?php 
    }
} else {
    ?>
          <?php 
    echo SELanguage::_get(1180);
    ?>
        <?php 
}
?>
      </div>
      <div class='spacer10'></div>
      
            <?php 
$this->_tag_stack[] = array('hook_foreach', array('name' => 'user_home', 'var' => 'user_home_args'));
$_block_repeat = true;
smarty_block_hook_foreach($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
    ob_start();
    ?>
        <?php 
echo SELanguage::_get(39);
echo '" onClick="parent.TB_remove()">\';

}


// THIS FUNCTION ENACTS THE CHANGES OF THE SAVE
function savedepfield_result(depfield_id, depfield_title) {
	parent.TB_remove();
}


// THIS FUNCTION CONFIRMS THE DELETION OF A FIELD
function removefield(fieldid) {
	if(confirm(\'';
echo SELanguage::_get(142);
echo '\')) {
	  $(\'ajaxframe\').src = \'admin_fields.php?task=removefield&type=\'+cat_type+\'&field_id=\'+fieldid;
	}
}


// THIS FUNCTION REMOVES THE FIELD FROM THE PAGE
function removefield_result(fieldid) {
	parent.TB_remove();
	var fielddiv = parent.document.getElementById(\'field_\'+fieldid); 
	var fieldarea = fielddiv.parentNode;
	fieldarea.removeChild(fielddiv);
}

        ?>
<img src='./images/icons/tip.gif' border='0' class='Tips1' style='vertical-align: middle;' title='<?php 
        echo is_array($_tmp = $this->_tpl_vars['tip']) ? $this->_run_mod_handler('replace', true, $_tmp, "'", "&#039;") : smarty_modifier_replace($_tmp, "'", "&#039;");
        ?>
'></td>
      </tr>
      </table>
    </td>
    </tr>
  <?php 
    }
    ?>
  <tr>
  <td class='form1'>&nbsp;</td>
  <td class='form2'><input type='submit' class='button' value='<?php 
    echo SELanguage::_get(728);
    ?>
'></td>
  </tr>
  </table>

  <input type='hidden' name='task' value='doinvite'>
  </form>
<?php 
}
?>
  
<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
		<td class='login'><input type='text' class='text' name='username' id='username' maxlength='50'> &nbsp;</td>
		<td class='login'><?php 
echo SELanguage::_get(29);
?>
: &nbsp;</td>
		<td class='login'><input type='password' class='text' name='password' id='password' maxlength='50'> &nbsp;</td>
		<td class='login'><input type='submit' class='button' value='<?php 
echo SELanguage::_get(30);
?>
'></td>
		</tr>
		</table>
	        <?php 
if ($this->_tpl_vars['is_error'] != 0) {
    ?>
<div class='error'><?php 
    echo SELanguage::_get($this->_tpl_vars['is_error']);
    ?>
</div><?php 
}
?>
	</div>
	<input type='hidden' name='task' value='dologin'>
	<NOSCRIPT><input type='hidden' name='javascript' value='no'></NOSCRIPT>
	</form>
</td>
</tr>
</table>

</body>
</html>
Exemplo n.º 11
0
 function load($overwrite = FALSE)
 {
     $instance =& SELanguage::_init();
     if (is_object($instance->_storage)) {
         return $instance->_storage->load($instance->_language, $overwrite);
     }
     return NULL;
 }

<div style='display: none;' id='template'>
  <form action='admin_templates.php' method='post' name='editform' target='ajaxframe' onSubmit='parent.TB_remove();'>
  <div style='margin-top: 10px; margin-bottom: 10px;'><?php 
echo SELanguage::_get(472);
?>
</div>
  <textarea name='template_code' id='template_code' rows='20' style='width: 100%; font-size: 8pt; height: 485px; font-family: verdana, serif;'><?php 
echo $this->_tpl_vars['template_code'];
?>
</textarea>
  <br><br>
  <input type='submit' class='button' value='<?php 
echo SELanguage::_get(173);
?>
'> <input type='button' class='button' value='<?php 
echo SELanguage::_get(466);
?>
' onClick='parent.TB_remove();'>
  <input type='hidden' name='task' value='save'>
  <input type='hidden' name='t' id='t' value=''>
  </form>
</div>


<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'admin_footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
                                    ?>
' style='padding-top: 3px;'>
                        <div><img src='../images/item_dep.gif' border='0' class='icon2'><?php 
                                    echo SELanguage::_get($this->_tpl_vars['cats'][$this->_sections['cat_loop']['index']]['subcats'][$this->_sections['subcat_loop']['index']]['fields'][$this->_sections['field_loop']['index']]['field_options'][$this->_sections['dep_field_loop']['index']]['label']);
                                    ?>
 <a href='admin_fields.php?type=profile&task=getdepfield&field_id=<?php 
                                    echo $this->_tpl_vars['cats'][$this->_sections['cat_loop']['index']]['subcats'][$this->_sections['subcat_loop']['index']]['fields'][$this->_sections['field_loop']['index']]['field_options'][$this->_sections['dep_field_loop']['index']]['dep_field_id'];
                                    ?>
&TB_iframe=true&height=450&width=450' class='smoothbox' title='<?php 
                                    echo SELanguage::_get(148);
                                    ?>
' id='dep_field_title_<?php 
                                    echo $this->_tpl_vars['cats'][$this->_sections['cat_loop']['index']]['subcats'][$this->_sections['subcat_loop']['index']]['fields'][$this->_sections['field_loop']['index']]['field_options'][$this->_sections['dep_field_loop']['index']]['dep_field_id'];
                                    ?>
'><i><?php 
                                    echo SELanguage::_get(102);
                                    ?>
</i></a></div>
		      </div>
		    <?php 
                                }
                                ?>
                  <?php 
                            }
                        }
                        ?>

                </div>
              </div>
            <?php 
                    }
echo SELanguage::_get(1175);
?>
 <?php 
echo is_array($_tmp = time()) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y') : smarty_modifier_date_format($_tmp, '%Y');
?>
 &nbsp;-&nbsp;
  <a href='help.php' class='copyright'><?php 
echo SELanguage::_get(752);
?>
</a> &nbsp;-&nbsp;
  <a href='help_tos.php' class='copyright'><?php 
echo SELanguage::_get(753);
?>
</a> &nbsp;-&nbsp;
  <a href='help_contact.php' class='copyright'><?php 
echo SELanguage::_get(754);
?>
</a>
  <?php 
if ($this->_tpl_vars['setting']['setting_lang_anonymous'] == 1 && count($this->_tpl_vars['lang_packlist']) != 0) {
    ?>
    &nbsp;-&nbsp;
    <?php 
    if ((is_array($_tmp = $_SERVER['QUERY_STRING']) ? $this->_run_mod_handler('strpos', true, $_tmp, "&lang_id=") : strpos($_tmp, "&lang_id=")) !== FALSE) {
        $this->assign('pos', is_array($_tmp = $_SERVER['QUERY_STRING']) ? $this->_run_mod_handler('strstr', true, $_tmp, "&lang_id=") : strstr($_tmp, "&lang_id="));
        $this->assign('query_string', is_array($_tmp = $_SERVER['QUERY_STRING']) ? $this->_run_mod_handler('replace', true, $_tmp, $this->_tpl_vars['pos'], "") : smarty_modifier_replace($_tmp, $this->_tpl_vars['pos'], ""));
    } else {
        $this->assign('query_string', $_SERVER['QUERY_STRING']);
    }
    ?>
    <select class='small' name='user_language_id' onchange="window.location.href='<?php 
Exemplo n.º 15
0
    function smarty_postfilter_prepend_load($compiled, &$smarty)
    {
        $instance =& SELanguageCompiler::getInstance();
        $prepend_compiled = '<?php';
        if (!empty($instance->_smarty_language_variables)) {
            $prepend_compiled .= '
SELanguage::_preload_multi(';
            // Remove duplicate values
            $instance->_smarty_language_variables = array_unique($instance->_smarty_language_variables);
            $count = 0;
            foreach ($instance->_smarty_language_variables as $preload_lang_id) {
                if ($count != 0) {
                    $prepend_compiled .= ',';
                }
                $prepend_compiled .= "{$preload_lang_id}";
                $count++;
            }
            $prepend_compiled .= ');';
        }
        $prepend_compiled .= '
SELanguage::load();
?>';
        // INDEXING
        if ($instance->use_indexing) {
            $index_file = NULL;
            if (strpos($smarty->_current_file, 'admin_header') !== FALSE || strpos($smarty->_current_file, 'admin_footer') !== FALSE) {
                $index_file = 'globals_admin';
            } elseif (strpos($smarty->_current_file, 'header') !== FALSE || strpos($smarty->_current_file, 'footer') !== FALSE) {
                $index_file = 'globals';
            } elseif ($instance->index_non_header_templates) {
                $index_file = $smarty->_current_file;
            }
            if (!is_null($index_file)) {
                SELanguage::_update_index_file($instance->_smarty_language_variables, $index_file);
            }
        }
        // EMPTY FOR THE NEXT TEMPLATE
        $instance->_smarty_language_variables = array();
        return $prepend_compiled . $compiled;
    }
Exemplo n.º 16
0
 function make_language_file($language_id, $languagevars = array(), $language_info = array())
 {
     $instance =& SELanguage::_init();
     if (empty($instance->_storage->_languages)) {
         $instance->_storage->_languages();
     }
     $language_info = array_merge($instance->_storage->_languages[$language_id], $language_info);
     if (empty($language_info['language_record_first'])) {
         $language_info['language_record_first'] = min(array_keys($languagevars));
     }
     if (empty($language_info['language_record_last'])) {
         $language_info['language_record_last'] = max(array_keys($languagevars));
     }
     ksort($languagevars);
     // Generate file data
     $newline = "\n";
     $file_contents = '';
     $file_contents .= '<?php die("Access Denied"); ?>' . $newline;
     $file_contents .= 'LANGUAGE_CODE:=' . $language_info['language_code'] . $newline;
     $file_contents .= 'LANGUAGE_NAME:=' . $language_info['language_name'] . $newline;
     $file_contents .= 'LANGUAGE_LOCALE:=' . $language_info['language_setlocale'] . $newline;
     $file_contents .= 'LANGUAGE_AUTODETECT:=' . $language_info['language_autodetect_regex'] . $newline;
     $file_contents .= 'LANGUAGE_RECORD_FIRST:=' . $language_info['language_record_first'] . $newline;
     $file_contents .= 'LANGUAGE_RECORD_LAST:=' . $language_info['language_record_last'] . $newline;
     //if( $range_name ) $file_contents .= 'LANGUAGE_RANGE:=' . $range_name . $newline;
     foreach ($languagevars as $languagevar_id => $Languagevar_value) {
         if (!trim($Languagevar_value)) {
             continue;
         }
         // Normal
         if (strpos($Languagevar_value, "\n") === FALSE) {
             $file_contents .= $languagevar_id . ':=' . $Languagevar_value . $newline;
         } else {
             $file_contents .= $languagevar_id . ':=<<<LANG' . $newline;
             $file_contents .= $Languagevar_value . $newline;
             $file_contents .= 'LANG;' . $newline;
         }
     }
     /*
     if( $language_file )
     {
       // Open file
       if( !($fh = fopen($language_file, 'w')) )
       {
         echo 'FILE ERROR';
         return FALSE;
       }
       
       fwrite($fh, 'LANG;'.$newline);
       fclose($fh);
       
       return TRUE;
     }
     */
     return $file_contents;
 }
 - <?php 
    echo sprintf(SELanguage::_get($this->_tpl_vars['global_page_title'][0]), $this->_tpl_vars['global_page_title'][1], $this->_tpl_vars['global_page_title'][2]);
}
?>
</title>
<base href='<?php 
echo $this->_tpl_vars['url']->url_base;
?>
' />
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<meta http-equiv="X-UA-Compatible" content="IE=7" /> 
<meta name='Description' content="<?php 
if ($this->_tpl_vars['global_page_description'] != "") {
    echo sprintf(SELanguage::_get($this->_tpl_vars['global_page_description'][0]), $this->_tpl_vars['global_page_description'][1], $this->_tpl_vars['global_page_description'][2]);
} else {
    echo SELanguage::_get(1156);
}
?>
" />

<link rel="stylesheet" href="./templates/styles_global.css" title="stylesheet" type="text/css" />  
<link rel="stylesheet" href="./templates/styles.css" title="stylesheet" type="text/css" />  

<script type="text/javascript" src="./include/js/mootools12-min.js"></script>

<script type="text/javascript" src="./include/js/core-min.js"></script>

<script type="text/javascript">
<!--
  var SocialEngine = new SocialEngineAPI.Base();
  
        <div class='menu_item'>
      <div style='float: left; background: none;'>
        <a href='user_account.php' class='menu_item'><img src='./images/icons/settings16.gif' border='0' class='menu_icon' alt='' /><?php 
    echo SELanguage::_get(655);
    ?>
</a>
        <img src='./images/icons/menu_arrow.gif' border='0' style='vertical-align: middle; cursor: pointer;' onMouseOver="showMenu('menu_dropdown_settings');" alt='' />
        <div>
          <div class='menu_dropdown' id='menu_dropdown_settings' style='display: none;'>
            <div>
              <div class='menu_item_dropdown'><a href='user_account.php' class='menu_item'><img src='./images/icons/settings16.gif' border='0' class='menu_icon2' alt='' /><?php 
    echo SELanguage::_get(1173);
    ?>
</a></div>
              <div class='menu_item_dropdown'><a href='user_account_privacy.php' class='menu_item'><img src='./images/icons/settings_privacy16.gif' border='0' class='menu_icon2' alt='' /><?php 
    echo SELanguage::_get(1174);
    ?>
</a></div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div style='clear: both; background: none; height: 0px;'></div>
    
  </td>
  </tr>
  </table>
<?php 
}
  <tr>
  <td>
    <br>
    <input type='submit' class='button' value='<?php 
    echo SELanguage::_get(788);
    ?>
'>
    <input type='hidden' name='task' value='dodelete'>
    </form>
  </td>
  <td align='right' valign='top'>
    <div class='pages2'><?php 
    echo sprintf(SELanguage::_get(1004), $this->_tpl_vars['total_users']);
    ?>
 &nbsp;|&nbsp; <?php 
    echo SELanguage::_get(1005);
    ?>
 <?php 
    unset($this->_sections['page_loop']);
    $this->_sections['page_loop']['name'] = 'page_loop';
    $this->_sections['page_loop']['loop'] = is_array($_loop = $this->_tpl_vars['pages']) ? count($_loop) : max(0, (int) $_loop);
    unset($_loop);
    $this->_sections['page_loop']['show'] = true;
    $this->_sections['page_loop']['max'] = $this->_sections['page_loop']['loop'];
    $this->_sections['page_loop']['step'] = 1;
    $this->_sections['page_loop']['start'] = $this->_sections['page_loop']['step'] > 0 ? 0 : $this->_sections['page_loop']['loop'] - 1;
    if ($this->_sections['page_loop']['show']) {
        $this->_sections['page_loop']['total'] = $this->_sections['page_loop']['loop'];
        if ($this->_sections['page_loop']['total'] == 0) {
            $this->_sections['page_loop']['show'] = false;
        }
Exemplo n.º 20
0
($hook = SE_Hook::exists('se_admin_sanity')) ? SE_Hook::call($hook, array()) : NULL;
$sanity->execute();
// Generate notifications
$admin_notifications = array();
if (file_exists(SE_ROOT . "/install.php") || file_exists(SE_ROOT . "/installsql.php")) {
    $admin_notifications[] = 1314;
}
if (file_exists(SE_ROOT . "/upgrade.php") || file_exists(SE_ROOT . "/upgradesql.php")) {
    $admin_notifications[] = 1315;
}
$file_version_arr = explode('.', $version);
$file_version = array_shift($file_version_arr) . '.' . join('', $file_version_arr);
$database_version_arr = explode('.', $setting['setting_version']);
$database_version = array_shift($database_version_arr) . '.' . join('', $database_version_arr);
if ($file_version != $database_version) {
    $admin_notifications[] = sprintf(SELanguage::get(1320), $file_version, $database_version);
}
foreach ($sanity->tests as $sanity_test) {
    if ($sanity_test->result || $sanity_test->is_recommendation) {
        continue;
    }
    $admin_notifications[] = $sanity_test->getCategory() . ': ' . $sanity_test->getTitle() . ': ' . $sanity_test->getMessage();
}
($hook = SE_Hook::exists('se_admin_notifications')) ? SE_Hook::call($hook, array()) : NULL;
// ASSIGN VARIABLES AND SHOW ADMIN HOME PAGE
$smarty->assign('admin_notifications', $admin_notifications);
$smarty->assign('task', $task);
$smarty->assign('total_users_num', $total_users['total_users']);
$smarty->assign('total_messages_num', $total_messages['total_messages']);
$smarty->assign('total_comments_num', $total_comments);
$smarty->assign('total_user_levels', $total_user_levels['total_user_levels']);
                ?>
      </td>
      <?php 
                echo smarty_function_cycle(array('name' => 'endrow2', 'values' => ",</tr>"), $this);
                ?>

      <?php 
            }
        }
        ?>
      </table>
    <?php 
    } else {
        ?>
      <?php 
        echo SELanguage::_get(670);
        ?>
    <?php 
    }
    ?>
    </div>
    <div class='portal_spacer'></div>
  <?php 
}
?>

</div>



?>
</a></div>
  <div class='menu'><a href='admin_announcements.php' class='menu'><img src='../images/icons/admin_announcements16.gif' border='0' class='icon2'><?php 
echo SELanguage::_get(23);
?>
</a></div>
  <div class='menu'><a href='admin_stats.php' class='menu'><img src='../images/icons/admin_stats16.gif' border='0' class='icon2'><?php 
echo SELanguage::_get(24);
?>
</a></div>
  <div class='menu'><a href='admin_log.php' class='menu'><img src='../images/icons/admin_log16.gif' border='0' class='icon2'><?php 
echo SELanguage::_get(25);
?>
</a></div>
  <div class='menu'><a href='admin_logout.php' class='menu'><img src='../images/icons/admin_logout16.gif' border='0' class='icon2'><?php 
echo SELanguage::_get(26);
?>
</a></div>
  </div>
  </div>

  <?php 
echo '
  <script type="text/javascript">
  <!-- 
  window.addEvent(\'domready\', function()
  { 
    var Slideup4 = new Fx.Slide(\'slideup4\');
    if(menu_minimized.get(4) == 0) { $(\'min4_icon\').innerHTML = \'[ + ]\'; Slideup4.hide(); }
    $(\'min4\').addEvent(\'click\', function(e)
    {
        echo is_array($_tmp = $this->_tpl_vars['tip']) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes');
        ?>
'></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  </td>
  </tr>
  <?php 
    }
    ?>
  <tr>
  <td class='form1'>&nbsp;</td>
  <td class='form2'><input type='submit' class='button' value='<?php 
    echo SELanguage::_get(839);
    ?>
'></td>
  </tr>
  </table>
  
  
  <input type='hidden' name='task' value='dosend' />
  </form>
<?php 
}
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
Exemplo n.º 24
0
 function _loadGlobalValues($language_id, $overwrite = FALSE)
 {
     //echo " load.{$this->_load_count} ";
     $language_object = SELanguage::_init();
     $cache_object = SECache::getInstance('serial');
     if (!is_object($cache_object)) {
         return;
     }
     // Return if empty
     $global_language_values = $cache_object->get('language_globals_' . $language_id);
     if (empty($global_language_values)) {
         return;
     }
     foreach ($global_language_values as $global_languagevar_id => $global_languagevar_value) {
         if (!$overwrite && !empty($this->_language_variables[$global_languagevar_id])) {
             continue;
         }
         if (empty($global_languagevar_value)) {
             continue;
         }
         $this->_language_variables[$global_languagevar_id] = $global_languagevar_value;
     }
 }
Exemplo n.º 25
0
$page = "admin_profile_edit";
include "admin_header.php";
$task = isset($_POST['task']) ? $_POST['task'] : (isset($_GET['task']) ? $_GET['task'] : NULL);
$profilecat_id = isset($_POST['profilecat_id']) ? $_POST['profilecat_id'] : (isset($_GET['profilecat_id']) ? $_GET['profilecat_id'] : NULL);
$method_default = isset($_POST['method_default']) ? $_POST['method_default'] : (isset($_GET['method_default']) ? $_GET['method_default'] : NULL);
// GET TABS AND FIELDS
$sql = "SELECT * FROM se_profilecats WHERE profilecat_id='{$profilecat_id}' LIMIT 1";
$resource = $database->database_query($sql);
if ($resource && $database->database_num_rows($resource)) {
    $profilecat_info = $database->database_fetch_assoc($resource);
}
if (empty($profilecat_info) || !empty($profilecat_info['profilecat_dependency'])) {
    header('Location: admin_profile.php');
    exit;
}
SELanguage::_preload($profilecat_info['profilecat_title']);
// Save
if ($task == "dosave") {
    $profilecat_displayname_method_allowed = $_POST['profilecat_displayname_method_allowed'];
    $profilecat_displayname_method_custom = $_POST['profilecat_displayname_method_custom'];
    $profilecat_displayname_method_allowed = !empty($profilecat_displayname_method_allowed) && is_array($profilecat_displayname_method_allowed) ? array_sum($profilecat_displayname_method_allowed) : 0;
    $sql = "\r\n    UPDATE\r\n      se_profilecats\r\n    SET\r\n      profilecat_displayname_method_allowed='{$profilecat_displayname_method_allowed}',\r\n      profilecat_displayname_method_custom='{$profilecat_displayname_method_custom}'\r\n    WHERE\r\n      profilecat_id='{$profilecat_id}'\r\n    LIMIT\r\n      1\r\n  ";
    $resource = $database->database_query($sql);
    // Reload info
    $sql = "SELECT * FROM se_profilecats WHERE profilecat_id='{$profilecat_id}' LIMIT 1";
    $resource = $database->database_query($sql);
    $profilecat_info = $database->database_fetch_assoc($resource);
}
// ASSIGN VARIABLES AND SHOW ADMIN PROFILE PAGE
$smarty->assign_by_ref('profilecat_info', $profilecat_info);
include "admin_footer.php";
        if ($this->_tpl_vars['p'] != $this->_tpl_vars['maxpage']) {
            ?>
<a href='user_friends.php?s=<?php 
            echo $this->_tpl_vars['s'];
            ?>
&search=<?php 
            echo $this->_tpl_vars['search'];
            ?>
&p=<?php 
            echo smarty_function_math(array('equation' => 'p+1', 'p' => $this->_tpl_vars['p']), $this);
            ?>
'><?php 
            echo SELanguage::_get(183);
            ?>
 &#187;</a><?php 
        } else {
            ?>
<font class='disabled'><?php 
            echo SELanguage::_get(183);
            ?>
 &#187;</font><?php 
        }
        ?>
    </div>
  <?php 
    }
}
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
echo SELanguage::_get(82);
?>
</td>
  </tr>
  <tr>
    <td class='step'>4</td>
    <td><b><a href='admin_levels.php'><?php 
echo SELanguage::_get(79);
?>
</a></b><br><?php 
echo SELanguage::_get(80);
?>
</td>
  </tr>
  <tr>
    <td class='step'>5</td>
    <td><b><a href='admin_templates.php'><?php 
echo SELanguage::_get(83);
?>
</a></b><br><?php 
echo SELanguage::_get(84);
?>
</td>
  </tr>
</table>

<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'admin_footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
    <td class='form1'>&nbsp;</td>
    <td class='form2'>
      <input type='submit' class='button' value='<?php 
echo SELanguage::_get(30);
?>
' />&nbsp; 
      <input type='checkbox' class='checkbox' name='persistent' id='persistent' value='1'>
      <label for='persistent'><?php 
echo SELanguage::_get(660);
?>
</label>
      <br />
      <br />
      <img src='./images/icons/help16.gif' border='0' class='icon' />
      <a href='lostpass.php'><?php 
echo SELanguage::_get(675);
?>
</a>
      <noscript><input type='hidden' name='javascript_disabled' value='1' /></noscript>
      <input type='hidden' name='task' value='dologin' />
      <input type='hidden' name='return_url' value='<?php 
echo $this->_tpl_vars['return_url'];
?>
' />
    </td>
  </tr>
</table>
</form>

<?php 
echo '
                    $this->_sections['faq_loop']['first'] = $this->_sections['faq_loop']['iteration'] == 1;
                    $this->_sections['faq_loop']['last'] = $this->_sections['faq_loop']['iteration'] == $this->_sections['faq_loop']['total'];
                    ?>
      <div class='faq_questions'>
      <a href="javascript:void(0);" onClick="faq_show('<?php 
                    echo $this->_tpl_vars['faqcats'][$this->_sections['faqcat_loop']['index']]['faqs'][$this->_sections['faq_loop']['index']]['faq_id'];
                    ?>
');"><?php 
                    echo SELanguage::_get($this->_tpl_vars['faqcats'][$this->_sections['faqcat_loop']['index']]['faqs'][$this->_sections['faq_loop']['index']]['faq_subject']);
                    ?>
</a><br>
      <div class='faq' style='display: none;' id='<?php 
                    echo $this->_tpl_vars['faqcats'][$this->_sections['faqcat_loop']['index']]['faqs'][$this->_sections['faq_loop']['index']]['faq_id'];
                    ?>
'><?php 
                    echo SELanguage::_get($this->_tpl_vars['faqcats'][$this->_sections['faqcat_loop']['index']]['faqs'][$this->_sections['faq_loop']['index']]['faq_content']);
                    ?>
</div>
      </div>
    <?php 
                }
            }
            ?>
    <br>
  <?php 
        }
    }
}
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
SELanguage::load();
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>


<img src='./images/icons/error48.gif' border='0' class='icon_big'>
<div class='page_header'><?php 
echo SELanguage::_get($this->_tpl_vars['error_header']);
?>
</div>
<?php 
echo SELanguage::_get($this->_tpl_vars['error_message']);
?>

<br />
<br />
<br />

<input type='button' class='button' value='<?php 
echo SELanguage::_get($this->_tpl_vars['error_submit']);
?>
' onClick='history.go(-1)'>

<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);