Esempio n. 1
0
<?php

$id = $_POST['id'];
echo SimpleText::getByName($_POST['id'])->getText();
Esempio n. 2
0
File: index.php Progetto: fulldump/8
<?php

$id = '';
eval('$id=' . var_export($data['id'], true) . ';');
$edit = !in_array('noedit', $flags);
$simpletext = SimpleText::getByName($id);
if (null === $simpletext) {
    $simpletext = SimpleText::INSERT();
    $simpletext->setName($id);
    $simpletext->setText($data['text']);
}
$text = $simpletext->getText();
if (array_key_exists('edit', $_GET) && Session::isLoggedIn() && $edit) {
    ?>
<div component="SimpleText" edit_id="<?php 
    echo $id;
    ?>
"></div>
<?php 
} else {
    echo '<div class="SimpleText">' . $text . '</div>';
}
Esempio n. 3
0
<?php

if (Session::isLoggedIn()) {
    SimpleText::getByName($_POST['id'])->setText($_POST['text']);
}