Esempio n. 1
0
function showEntriesArchive($num, $pnum)
{
    if ($pnum == 1) {
        $offset = 1;
    } else {
        $offset = ($pnum - 1) * $num;
    }
    $query = "select id from main order by entrytime desc limit {$offset},{$num}";
    $result = mysql_query($query);
    while ($row = mysql_fetch_array($result)) {
        printEntry($row['id']);
    }
}
Esempio n. 2
0
            }
        }
    }
    $dir->close();
}
if ($path != null) {
    $filePath = preg_replace("/__preload__\\.js\$/", ".js", $path);
    $pos = strrpos($path, '/');
    $fileName = substr($filePath, $pos + 1);
    $packageName = preg_replace("/\\//", ".", substr($path, 0, $pos));
    if ($filePath != $path) {
        echo "\$JSI.preload('{$packageName}','{$fileName}',function(){eval(this.varText);";
        printEntry($filePath);
        echo "\n})";
    } else {
        printEntry($path);
    }
} else {
    //TODO:require
    if (array_key_exists('externalScript', $_GET)) {
        $externalScript = $_GET['externalScript'];
    } else {
        $externalScript = findPackageList(realpath("."));
    }
    header("Content-Type:text/html;charset={$encoding}");
    echo "<html><frameset rows='100%'><frame src='index.php/org/xidea/jsidoc/index.html?group.All%20Scripts={$externalScript}'></frame></frameset></html>";
}
function zipFileErrMsg($errno)
{
    // using constant name as a string to make this function PHP4 compatible
    $zipFileFunctionsErrors = array('ZIPARCHIVE::ER_MULTIDISK' => 'Multi-disk zip archives not supported.', 'ZIPARCHIVE::ER_RENAME' => 'Renaming temporary file failed.', 'ZIPARCHIVE::ER_CLOSE' => 'Closing zip archive failed', 'ZIPARCHIVE::ER_SEEK' => 'Seek error', 'ZIPARCHIVE::ER_READ' => 'Read error', 'ZIPARCHIVE::ER_WRITE' => 'Write error', 'ZIPARCHIVE::ER_CRC' => 'CRC error', 'ZIPARCHIVE::ER_ZIPCLOSED' => 'Containing zip archive was closed', 'ZIPARCHIVE::ER_NOENT' => 'No such file.', 'ZIPARCHIVE::ER_EXISTS' => 'File already exists', 'ZIPARCHIVE::ER_OPEN' => 'Can\'t open file', 'ZIPARCHIVE::ER_TMPOPEN' => 'Failure to create temporary file.', 'ZIPARCHIVE::ER_ZLIB' => 'Zlib error', 'ZIPARCHIVE::ER_MEMORY' => 'Memory allocation failure', 'ZIPARCHIVE::ER_CHANGED' => 'Entry has been changed', 'ZIPARCHIVE::ER_COMPNOTSUPP' => 'Compression method not supported.', 'ZIPARCHIVE::ER_EOF' => 'Premature EOF', 'ZIPARCHIVE::ER_INVAL' => 'Invalid argument', 'ZIPARCHIVE::ER_NOZIP' => 'Not a zip archive', 'ZIPARCHIVE::ER_INTERNAL' => 'Internal error', 'ZIPARCHIVE::ER_INCONS' => 'Zip archive inconsistent', 'ZIPARCHIVE::ER_REMOVE' => 'Can\'t remove file', 'ZIPARCHIVE::ER_DELETED' => 'Entry has been deleted');
Esempio n. 3
0
        foreach ($entry->comments as $comment) {
            $html .= '<small><a href="index.php?user='******'">' . $comment->user->username . '</a></small> ' . htmlspecialchars($comment->text) . '<br />';
        }
        $html .= '
	</p>';
    }
    $html .= '</div>';
    return $html;
}
/**
 * Do the API-calls now
 */
try {
    $inst = new Instagram();
    $inst->auth->login($username, $password, $deviceId);
    if (isset($_GET['user']) && is_numeric($_GET['user']) && !isset($_GET['hidebacklink'])) {
        echo '<p><a href="index.php">&lt;&lt; Back to my feed</a></p>';
        $feed = $inst->feed->user((int) $_GET['user']);
    } else {
        $feed = $inst->feed->timeline();
    }
    $inst->run();
    $response = $feed->getResponse()->getData();
    foreach ($response as $rentry) {
        echo printEntry($rentry);
    }
} catch (Instagram_Exception $ex) {
    echo "<pre>\n\n   ERROR: {$ex->getMessage()}\n\n" . var_export($ex->getResponse(), 1) . "\n\n{$ex}\n\n</pre>";
}
?>
</body></html>
Esempio n. 4
0
function showEntriesArchive($num, $pnum)
{
    if ($pnum == 1) {
        $offset = 1;
    } else {
        $offset = ($pnum - 1) * $num;
    }
    $params = array('num' => $num, 'offset' => $offset);
    $result = query("main.showEntriesArchive", $params);
    while ($row = mysql_fetch_array($result)) {
        printEntry($row['id']);
    }
}
Esempio n. 5
0
<?php

include_once "header.php";
include_once "db.php";
include_once "dertyn.php";
$sitename = getSiteName();
if ($rewriteCheck == 1) {
    printEntry($id, "single");
    $pid = getPid($id);
} else {
    printEntry($id);
    $pid = $id;
}
?>

<!-- insert disqus commenting code here if you want commenting -->

<?php 
include_once "footer.php";
?>

Esempio n. 6
0
function printAllLinks($userID)
{
    $query = "SELECT * FROM links WHERE UserID = ? ORDER BY timestamp DESC";
    $params = [$userID];
    $result = selectQuery($query, $params);
    foreach ($result as $row) {
        printEntry($row);
    }
}
		<a href="<?php 
echo url_for('@noticies_culturals?MODE=CONTINGUT&PAGE_ID=' . $PAGE_ID_QUE_HA_PASSAT);
?>
"><?php 
echo image_tag('blogs/Dissenys/noticies_culturals/B3_A.png', array('class' => 'rollover', 'alt' => 'Què ha passat?'));
?>
</a><br />			
	</td>
	<td class="right-col content">
	<?php 
if ($MODE == 'CONTINGUT') {
    ?>
				
		<?php 
    if (isset($NOTICIA)) {
        printEntry($NOTICIA);
    } else {
        printEntries($NOTICIES);
    }
    ?>
	<?php 
} elseif ($MODE == 'FORM1') {
    ?>
				
		<?php 
    echo printForm1($FORM1);
    ?>
		
	<?php 
} elseif ($MODE == 'FORM2') {
    ?>