<?
$invert = $object->getMeta("sort_direction", "") == "asc" ? "!" : "";

$children = fetch("FETCH node WHERE link:node_top='".$object->getNodeId()."' AND link:type='sub' AND !property:class_name='comment' AND !property:class_name='poll_answer' AND !property:class_name='image_region' NODESORTBY property:version SORTBY $invert".$object->getMeta("sort_by", "property:name"));

$children = getReadable($children);

if (count($children) > 0)
{
	$pagername = "children_show";
	include(gettpl("pager/start", $object));
	
	$view = $object->getMeta("view", "list");
	
	echo compiletpl("scripts/show/children-$view", array("start"=>$start, "end"=>$end, "objects"=>$children), $object);

	include(gettpl("pager/end", $object));
}
?>
Beispiel #2
0
function compiletplWithOutput($template, &$args, $object = null)
{
	ob_start();
	
	include(gettpl($template, $object));

	return ob_get_end();
}
</a>
						<?php 
echo cmd(ucf(i18n("calendar")), "exec=calendar", "sidebar");
?>
					</div>
					<div id="calendar_container" class="container">
						<div class="container">
							<?php 
echo compiletpl("scripts/calendar/small_month", array("firstday" => strtotime(date("Y-m") . "-01")));
?>
						</div>
					</div>
					
					<?php 
echo $_SESSION['murrix']['system']->createZone("zone_poll");
?>
					
					<?php 
echo $_SESSION['murrix']['system']->createZone("zone_info");
?>
				</td>
			</tr>
		</table>
		
		<div class="footer">
			<? include(gettpl("footer")) ?>
		</div>
		
		<div id="popupCalendarDiv" style="visibility:hidden; position:absolute; z-index:11;"></div>
	</body>
</html>
                    $contents = @file_get_contents($pl_path . '/' . $file);
                    $gtree = $XML->xml_to_array($contents);
                    if ($gtree != false) {
                        $plg_dsc = $gtree['kleeja']['info']['plugin_description'];
                        if (isset($plg_dsc)) {
                            if (is_array($plg_dsc['description']) && array_key_exists("attributes", $plg_dsc['description'])) {
                                $plg_dsc['description'] = array($plg_dsc['description']);
                            }
                            $p_desc = array();
                            foreach ($plg_dsc['description'] as $in) {
                                $p_desc[$in['attributes']['lang']] = $in['value'];
                            }
                        }
                        $plugins[] = array('p_file' => $file, 'p_name' => htmlspecialchars($gtree['kleeja']['info']['plugin_name']['value']), 'p_ver' => htmlspecialchars($gtree['kleeja']['info']['plugin_version']['value']), 'p_des' => isset($p_desc[getlang()]) ? $p_desc[getlang()] : $p_desc['en']);
                    }
                }
            }
            echo gettpl('plugins_options.html');
        }
        break;
    case 'end':
        echo gettpl('end.html');
        //for safe ..
        //@rename("install.php", "install.lock");
        break;
}
/**
* print footer
*/
echo gettpl('footer.html');
require_once("classes/class.mthumbnail.php");
require_once("classes/class.mtable.php");
require_once("classes/class.muser.php");
require_once("classes/class.mgroup.php");
require_once("classes/class.mxml.php");
require_once("classes/class.mmsg.php");

require_once("scripts/install/script.php");

session_name("MURRiX_Installer");
session_start();

global $db_prefix;

$_SESSION['murrix']['theme'] = "install";
$_SESSION['murrix']['language'] = "eng";

if (!isset($_SESSION['murrix']['system']))
{
	$_SESSION['murrix']['system'] = new mSystem();
	$_SESSION['murrix']['system']->loadScript("install");
	$_SESSION['murrix']['system']->transport = "standard";
}

if (!isset($_SESSION['murrix']['user']))
	$_SESSION['murrix']['user'] = new mUser();

$_SESSION['murrix']['system']->process();

include(gettpl("pagelayout"));
?>
Beispiel #6
0
<div class="main_title">
	Settings
</div>
<table class="invisible" cellspacing="0">
	<tr>
		<td>
			<? include(gettpl("install/menu")) ?>
		</td>
		<td width="100%">
			<div class="main">
				Below is a list of available themes. Please choose one.<br/>
				<br/>
				Default theme<br/>
				<form name="sInstall" id="sInstall" action="javascript:void(null);" onsubmit="Post('install','zone_main', 'sInstall')">
					<select class="selectbox" name="site">
					<?
						$folders = GetSubfolders("$abspath/design");
						foreach ($folders as $folder)
							echo "<option ".($folder == $this->site ? "selected" : "")." value=\"$folder\">".ucf($folder)."</option>";
					?>
					</select>
					<input class="hidden" type="hidden" name="stage" value="7">
				</form>
			</div>
			<div class="main_nav">
				<?php 
echo cmd("<-- Back", "exec=install&stage=5");
?>
				|
				<?php 
echo runjs("Finish -->", "Post('install','sInstall')");