Jump to content

I need help with my PHP Code


DesignerLost

Recommended Posts

So i'm making a website that's similar to a blog, and i ran into a roadblock with one of the features that i created. the feature that holds all the PDF and word docs isnt showing up in add.php  :-[

i've been going insane for the past 2 weeks looking at this trying to fix it

if anyone can tell me what i did wrong i would really appreciate that :-]

 

add.php

<?php
  // ---------------
  // INITIALIZE PAGE
  // ---------------
  require_once('scripts/sb_functions.php');
  global $logged_in;
  $logged_in = logged_in( true, true );
  
  read_config();
  
  require_once('languages/' . $DL_config[ 'DL_language' ] . '/strings.php');
  sb_language( 'add' );
  
  // ---------------
  // POST PROCESSING
  // ---------------
  
  // ------------
  // PAGE CONTENT
  // ------------
  function page_content() {
    global $lang_string, $DL_config;
    
    // SUBJECT
    $entry_array = array();
    $entry_array[ 'subject' ] = $lang_string[ 'title' ];
    
    // PAGE CONTENT BEGIN
    ob_start();
    
    echo( $lang_string[ 'instructions' ] . '<p />' );
    echo( '<hr />' );
    sb_editor();


    // PAGE CONTENT END
    $entry_array[ 'entry' ] = ob_get_clean();
    
    // THEME ENTRY
    echo( theme_staticentry( $entry_array ) );
  }
  
  // ----
  // HTML
  // ----
?>
  <?php echo( get_init_code() ); ?>
  <?php require_once('themes/' . $DL_theme . '/user_style.php'); ?>
  
  <?php require_once('scripts/sb_editor.php'); ?>
  <title><?php echo($DL_config[ 'DL_title' ]); ?> - <?php echo( $lang_string[ 'title' ] ); ?></title>
</head>
  <?php 
    // ------------
    // BEGIN OUTPUT
    // ------------
    theme_pagelayout();
  ?>
</html>

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/197322-i-need-help-with-my-php-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.