-<?
+<?php
global $node,$db,$error;
// All mysql code should go here
-<?
+<?php
// All psql code should go here
?>
-<?
+<?php
function destroy_synapse() {
global $error_messages,$db,$node,$error;
-<?
+<?php
function get_templates() {
$sql = "select * from `nodes` where `external_link` LIKE 'template://%'";
$q = mysql_query($sql);
-<?
+<?php
function set_time_lock(){
global $db,$error;
$user_id = $_SESSION['user_id'];
-<?
+<?php
function spamuj_ubik() {
global $db,$node,$error;
-<?
+<?php
function unset_time_lock(){
global $db,$error;
$user_id = $_SESSION['user_id'];
$error="ok. tvoj timelock bol zruseny.";
return false;
}
-?>
\ No newline at end of file
+?>
-<?
+<?php
function smarty_function_get_banner(&$smarty) {
$banners_directory = $_SERVER['DOCUMENT_ROOT']."/banners/";
-<?
+<?php
function smarty_function_get_nodes_by_external_link($params,&$smarty) {
if ($params['orderby']=='desc') $orderby="desc"; else $orderby="asc";
while ($set->next()) $pole[]=$set->getRecord();
$smarty->assign('get_nodes_by_external_link',$pole);
}
-?>
\ No newline at end of file
+?>