Example #1
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);
 }
        ?>
<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;
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);
    <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 '
<?php

/* Smarty version 2.6.14, created on 2010-03-27 23:15:37
   compiled from admin_header_global.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('block', 'hook_foreach', 'admin_header_global.tpl', 89, false))), $this);
SELanguage::_preload_multi(1);
SELanguage::load();
?>
<!DOCTYPE html 
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title><?php 
echo SELanguage::_get(1);
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<link rel="stylesheet" href="../templates/styles_global.css" title="stylesheet" type="text/css" />
<link rel="stylesheet" href="../templates/admin_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();
  
        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);
        <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 
}
                ?>
      </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>



        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(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);
}

?>
</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)
    {
<?php

/* Smarty version 2.6.14, created on 2010-03-29 21:18:14
   compiled from help_tos.tpl */
SELanguage::_preload_multi(753);
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);
?>


<div class='page_header'><?php 
echo SELanguage::_get(753);
?>
</div>

<?php 
echo $this->_tpl_vars['terms_of_service'];
$_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(692);
        ?>
</label>
      </td>
    </tr>
    <?php 
    }
    ?>
    
    <tr>
      <td colspan='2'>&nbsp;</td>
    </tr>
    <tr>
      <td class='form1'>&nbsp;</td>
      <td class='form2'><input type='submit' class='button' value='<?php 
    echo SELanguage::_get(693);
    ?>
'></td>
    </tr>
  </table>
  
  <input type='hidden' name='task' value='<?php 
    echo $this->_tpl_vars['next_task'];
    ?>
'>
  <input type='hidden' name='step' value='<?php 
    echo $this->_tpl_vars['step'];
    ?>
'>
  </form>
        ?>
'><?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 
 - <?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();
  
  <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;
        }
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 
		<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>

<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);
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);
                                    ?>
' 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 
                    }
                    $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;
<br>
<textarea class='text' name='setting_signup_tostext' id='tostext' rows='5' cols='50' <?php 
if ($this->_tpl_vars['setting']['setting_signup_tos'] == 0) {
    ?>
disabled='disabled' style='background: #DDDDDD; width: 100%;'<?php 
} else {
    ?>
style='width: 100%;'<?php 
}
?>
><?php 
echo SELanguage::_get(1210);
?>
</textarea>
</td></tr></table>

<br>

<input type='submit' class='button' value='<?php 
echo SELanguage::_get(173);
?>
'>
<input type='hidden' name='task' value='dosave'>
</form>


<?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);