コード例 #1
0
ファイル: rss_view_left.php プロジェクト: jasanders/os-aios
    function showOnUserInput()
    {
        ?>
    <onUserInput>
	ret = "false";
	userInput = currentUserInput();

	if (userInput == "<?php 
        echo getRssCommand('enter');
        ?>
"  || userInput == "<?php 
        echo getRssCommand('right');
        ?>
")
	{
		idx = getFocusItemIndex();
		url = getItemInfo( idx, "link" );
		act = getItemInfo( idx, "action" );
		if( act == "rss" )
		{
			url = doModalRss(url);
		}
		else if ( act == "search" )
		{
			str = doModalRss("<?php 
        echo getMosUrl() . '?page=rss_keyboard';
        ?>
");
			if(( str != null )&amp;&amp;( str != "" ))
			{
				url = url + urlEncode(str);
			}
			else url = "";
		}
		setReturnString( url );
		postMessage( "<?php 
        echo getRssCommand('return');
        ?>
" );
		ret = "true";
	}
	else
	if (userInput == "<?php 
        echo getRssCommand('left');
        ?>
")
	{
		postMessage( "<?php 
        echo getRssCommand('return');
        ?>
" );
		ret = "true";
	}
	ret;
    </onUserInput>
<?php 
    }
コード例 #2
0
ファイル: rss_services.php プロジェクト: jasanders/os-aios
function rss_services_menu_content()
{
    include 'rss_view_left.php';
    $view = new rssSkinLeftView();
    $view->items = array(0 => array('title' => getMsg('coreServices'), 'action' => 'ret', 'link' => getMosUrl() . '?page=xml_services'), 1 => array('title' => getMsg('coreModules'), 'action' => 'ret', 'link' => getMosUrl() . '?page=xml_modules'), 2 => array('title' => getMsg('coreCmUList'), 'action' => 'ret', 'link' => getMosUrl() . '?page=xml_modules&amp;act=getrep'), 3 => array('title' => getMsg('coreCmUAll'), 'action' => 'ret', 'link' => getMosUrl() . '?page=xml_modules&amp;act=update_all'), 4 => array('title' => getMsg('coreReboot'), 'action' => 'ret', 'link' => getMosUrl() . '?do=reboot'));
    $view->showRss();
}
コード例 #3
0
ファイル: xml_services.php プロジェクト: jasanders/os-aios
if ($isAll) {
    $packs = array();
    $packs = parse_ini_file($mos . '/etc/pm/packages', true);
    // adding non installed modules
    foreach ($packs as $mod => $item) {
        if (!array_key_exists($mod, $nav_modules)) {
            if ($item['role'] == 'package') {
                continue;
            }
            $st = isInstalable($mod, $item);
            if ($st != 0) {
                continue;
            }
            $mods[$mod] = array('status' => 'noinstall', 'title' => $item['title']);
        }
    }
}
ksort($mods);
$s = '';
$s .= "moServices - {$ptitle}\n";
$s .= count($mods) . PHP_EOL;
foreach ($mods as $mod => $item) {
    $sts = $item['status'];
    $s .= $item['title'] . "\n";
    $s .= "{$mos}/www/modules/core/images/st_{$sts}.png\n";
    $s .= getMosUrl() . "?page=rss_services_actions&mod={$mod}&ret={$npage}\n";
}
file_put_contents('/tmp/put.dat', $s);
header("Content-type: text/plain");
echo "/tmp/put.dat";
exit;
コード例 #4
0
ファイル: rss_menu.php プロジェクト: jasanders/os-aios
function xml_menu_content()
{
    global $mos;
    global $nav_rss;
    global $nav_pages;
    $s = getMsg('coreRssMainMenu') . PHP_EOL;
    $s .= count($nav_rss) . PHP_EOL;
    foreach ($nav_rss as $rss => $item) {
        if (isset($item['rss'])) {
            $mod = $item['module'];
            $url = $item['rss'];
        } else {
            $mod = $nav_pages[$item['page']]['module'];
            $url = getMosUrl() . '?page=' . $item['page'];
        }
        $s .= $item['title'] . PHP_EOL;
        $s .= $mos . '/www/modules/' . $mod . '/' . $item['icon'] . PHP_EOL;
        $s .= $url . PHP_EOL;
    }
    header("Content-type: text/plain");
    if (isset($_REQUEST['debug'])) {
        echo $s;
    } else {
        file_put_contents('/tmp/put.dat', $s);
        echo "/tmp/put.dat";
    }
}
コード例 #5
0
ファイル: def_rss.php プロジェクト: johnymarek/manta
<?php

// define RSS item
$nav_rss['PLIMS'] = array('module' => 'PLIMS', 'rss' => getMosUrl() . 'modules/PLIMS/menu.php', 'icon' => 'plims.png', 'title' => 'PLIMS');
コード例 #6
0
ファイル: rss_keyboard.php プロジェクト: jasanders/os-aios
        public function showScripts()
        {
            ?>

  <onEnter>
	moUrl = "<?php 
            echo getMosUrl() . '?page=xml_keyboard';
            ?>
";

	inputText = '';
	inputTextArray = null;
	inputTextCount = 0;

	setRefreshTime(1);
  </onEnter>

  <onRefresh>
	setRefreshTime(-1);
	showIdle();
	itemCount = 0;

	dlok = getURL( moUrl );
	if (dlok != null)
	{
		c = 0;
		pageTitle = getStringArrayAt(dlok, c); c += 1;
		itemCount = getStringArrayAt(dlok, c); c += 1;

		nameArray = null;

		count = 0;
		while( count != itemCount )
		{
			nameArray = pushBackStringArray( nameArray, getStringArrayAt(dlok, c)); c += 1;
			count += 1;
		}
	}
	if( itemCount == 0 ) postMessage( "<?php 
            echo getRssCommand('return');
            ?>
" );

	setFocusItemIndex( 0 );

	cancelIdle();
	redrawDisplay();
  </onRefresh>

  <onExit>
	setRefreshTime(-1);
  </onExit>
<?php 
        }