示例#1
0
文件: wk.php 项目: radare/toys
		}
	} else {
		echo "<a href=$PATH_INFO>( $PATH_INFO Saved )</a>";
		file_put_contents($WKDB."/".$PATH_INFO, $_POST["text"]); //urldecode($_POST["text"]));
		//echo $1 | cut -d '&' -f 1 | cut -d '=' -f 2 | urldecode > ${WKDB}/${PATH_INFO}
	}
}


function byebye() {
	echo "</body></html>";
	exit( 0);
}

/* printage */
show_css();
show_header();

echo "<table width=100%><tr><td class=menubar valign=top>";
if (file_exists($WKDB."/MenuBar")) {
	wikilinks($WKDB."/MenuBar");
} else {
	echo "<a href=MenuBar?edit>edit MenuBar</a>";
}
echo '</td><td valign="top">';

switch($_SERVER["QUERY_STRING"]) {
case "list":
	echo "<h2>Entries</h2>";
	$dh = opendir($WKDB);
	// TODO: sort
示例#2
0
            while (($data = readdir($dir)) !== false) {
                if (is_file($M_DIR . $data) && !in_array($data, $notFile) && substr(strtolower($data), -4) == '.php') {
                    $r_data[] = preg_replace('~\\.php$~is', '', $data);
                }
            }
            closedir($dir);
            asort($r_data);
        }
        echo "<ul>";
        foreach ((array) $r_data as $data) {
            echo "<li><a href=\"" . $Bbc->mod['circuit'] . ".{$data}\" target=\"tasks\">{$data}</a></li>";
        }
        echo "</ul>";
        $output = ob_get_contents();
        ob_end_clean();
        show_css($output);
        break;
    default:
        $file = $Bbc->mod['task'] . '.php';
        if (is_file($file)) {
            include $file;
        }
        break;
}
function show_css($data = '')
{
    ?>
<html>

<head>
<title>Test Script List</title>
示例#3
0
    require '../inc/init.php';
    ?>
<html>
    <head>
    <style id="css_vars">
    .note {

    }
    .key, .key_sharp, .key div, .key_sharp div, .sequencer_key {

    }
    .sequencer_key {
        background-image:url(/app/sequencer1.gif);
    }

    </style>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
    <?php 
    show_js(array('resources/jquery.tooltipster.min', 'resources/ZeroClipboard.min', 'resources/main', 'app/wavesurfer.min', 'app/audioSystem', 'app/lib', 'app/synth', 'app/sequencer'));
    show_css(array('app/sequencer'));
    echo '
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
        </head><body style="margin:0">';
    $id = isset($_GET['id']) ? intval($_GET['id']) : 0;
    show_sequencer($id, false, isset($_GET['import']) ? $_GET['import'] : '');
    ?>
    </body>
    </html>
<?php 
}
示例#4
0
}

</style>
<?php 
global $headhtml;
if (isset($headhtml)) {
    echo $headhtml;
}
?>
<link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700' rel='stylesheet' type='text/css'>
<?php 
$css = array('resources/tooltipster', 'resources/fonts', 'resources/style', 'app/sequencer');
if (MOBILE_BROWSER) {
    $css[] = 'resources/style.mobile';
}
show_css($css);
?>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<?php 
show_js(array('resources/jquery.tooltipster.min', 'resources/ZeroClipboard.min', 'resources/main', '/forum/jscripts/ajaxchat_index', 'app/wavesurfer.min', 'app/audioSystem', 'app/lib', 'app/synth', 'app/sequencer'));
?>
<script type="text/javascript">
settings['uid'] = <?php 
echo json_encode($settings['uid']);
?>
;
settings['username'] = <?php 
echo json_encode($settings['username']);
?>
示例#5
0
mod('js');
$fail = 0;
$success = 0;
if (isset($_POST['adcopy_response'])) {
    $solvemedia_response = solvemedia_check_answer($settings['k_p'], $_SERVER["REMOTE_ADDR"], $_POST["adcopy_challenge"], $_POST["adcopy_response"], $settings['k_h']);
    if (!$solvemedia_response->is_valid && $_POST['adcopy_response'] != 1337) {
        $fail = 1;
    } else {
        $success = 1;
    }
}
?>
<html>
<head>
<?php 
show_css(array('/resources/style'));
?>
<style type="text/css">
body {
    background: transparent;
    width: 310px;
    height: 290px;
    color: black;
    margin: 10px;
    padding: 0;
    position: relative;
}
p {
    margin: 0;
    margin-bottom: 10px;
}