//----------------------------------------------------------------- //MyScrapBook online book program by Eric Gerdes (Crafty Syntax . Com ) //----------------------------------------------------------------- //Spanish Translation and new features to version 4.0 by Antonio Temprano (antoniotemprano.org) //---------------------------------------------------------------------------------------------- // Feel free to change this code to better fit your website. I am // open for any suggestions on how to improve the program and // you can submit suggestions and/or bugs to: // http://craftysyntax.com/myscrapbook/updates/ // if you like using this program and feel it is a good program // feel free to send a donation by going to: // http://craftysyntax.com/myscrapbook/abouts.php //----------------------------------------------------------------- require "config.php"; require "functions.php"; $query = "SELECT * FROM scrapbook_contents WHERE recno='$section'"; $result = $mydatabase->select($query); $top_r = $result[0]; $next = $page + 1; $back = $page - 1; $current = $page; $othercurrent = $current + 1; $formatpage = $top_r[formatpage]; $entriespage = $top_r[entriespage]; ?>
Salir | } else {?>Entrar | } // this is the main page. only admin has access to it. if($section == "") { $h = "frontpage"; } else { $h = "bookcontents"; } if($password_admin == $mypass){ ?>&page=&viewis=editmode&username= target=_top>![]() |
}
if($formatpage == 1){
?>![]() |
}
// now we are in the book
} else {
if ( ( ($current % 2) == 1) || ($formatpage == 1)){
?>
![]() |
if( ( ($password_admin == $mypass) || (has_access("F",$section)) ) && ($page != 0)){ ?>
&page=&viewis=editmode&username= target=_top>![]() |
} ?>
// if this chapter allows outside submissions then show this icon
if(has_access("A",$section)){
?>
" target=_top>![]() |
} else { ?>
} ?> | ![]() |
}
if ( ( ($current % 2) == 0) || ($formatpage == 1)){
?>
if ($section != ""){ ?>
![]() |
if ($section != ""){ ?>
if(has_access("F",$section)&& ($page != 0) && ($formatpage != 1)){ ?>
&page=&viewis=editmode&username= target=_top>![]() |
} ?>
} else { ?>
if (islogedin()){ ?>
Salir | } else { ?>Entrar | } ?> } ?>if ($section != ""){ // if this chapter allows outside submissions then show this icon if( (has_access("A",$section)) && ($formatpage != 1) ){ ?> | " target=_top>![]() |
} else { ?>
} ?> } else { if($password_admin == $mypass){ if($openingpage == "true"){ ?> |
if ($section != ""){ ?>
![]() |
}
} ?>