Menu

Welcome to Help

Help
2001-11-30
2013-04-08
  • Nobody/Anonymous

    Welcome to Help

     
    • M. Abdullah Khaidar

      Anyone who need help should post in this forum

       
    • Nobody/Anonymous

      dear abdullah,
      i have problem in script 1.1. I can just see a blank page instead of script page. Plz help me. My script is http://haryanahome.ypu.com/demo/base64/index.php
      index.php is as below:
      <?php

      /************************************************************************
      +----------------------------------------------------------------------+
      |   index.php -> Cryptomak Cipher Tools                    |
      +----------------------------------------------------------------------+                                     
      |                                        |
      | (c) 2003 by M.Abdullah Khaidar (khaidarmak@yahoo.com)                |
      |                                           |   
      | This program is free software. You can redistribute it and/or modify |
      | it under the terms of the GNU General Public License as published by |
      | the Free Software Foundation; either version 2 of the License.       |
      |                                                                      |
      +----------------------------------------------------------------------+
      ************************************************************************/

      include_once('include/config.php');
      require_once('lib/smarty/Smarty.class.php');

      session_start();

      //set template directory
      $template_dir = "templates/" . TEMPLATE;

      $t = new Smarty;
      $t->template_dir = $template_dir;

      $t->assign('ciphers', $cipher_list);     //assign list of ciphers
      $t->assign('coders', $coder_list);     //assign list of coders
      $t->assign('hashes', $hash_list);     //assign list of hashes
      $t->assign('tools', $tool_list);    //assign list of tools

      /*
      if (isset($_SESSION[_ERRORS])) {
           $t->assign('errors', $_SESSION[_ERRORS]->toArray());
           $_SESSION[_ERRORS] = false;
      }
      */

      if (isset($_SESSION['object'])) {
           $t->assign('object', $_SESSION['object']);
      }

      $template = (!empty($_GET[_VIEW])) ? $_GET[_VIEW] : 'index';
      $template = $template . '.tpl';

      if(file_exists($template_dir . '/' . $template)){
           $t->display($template);
      } else {
           $t->display('index.tpl');
      }

      ?>

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.