Example #1
0
 /**
  * redirecting to index page.
  *
  * @param (string) $index - Home page.
  * @access public.
  */
 public static function index($index)
 {
     if (!self::$_requested['resource'] || empty(self::$_requested['resource'])) {
         c_redirecting(c_url($index));
     }
 }
Example #2
0
File: 404.php Project: abachi/MVC
a:link     { font: 8pt/11pt verdana, arial, sans-serif; color: red; }
a:visited  { font: 8pt/11pt verdana, arial, sans-serif; color: #4e4e4e; }
</style>
</head>
<body>


<div id="container">
<div id="bodytitle"><?php 
echo c_lang('c_404_not_found');
?>
</div>
<div class="bodytext ">
<?php 
echo c_lang('c_404_not_found_message');
?>
<br />
<br />
<a href="<?php 
echo c_url("");
?>
"><?php 
echo c_lang("c_back_to_homepage");
?>
</a>
</div>
</div>


</body>
</html>
Example #3
0
File: css.php Project: abachi/MVC
 /**
  * CSS style url.
  *
  * @param (string) $filename - file name.
  * @param (boolean) $compress - Compress CSS file.
  * @access public.
  */
 public static function style($filename, $compress = false)
 {
     if (file_exists(self::path() . $filename)) {
         if ($compress == true) {
             self::initializing($filename);
             return c_url("public" . DS . "css" . DS . c_trim_path(self::$min) . DS . $filename);
         } else {
             return c_url("public" . DS . "css" . DS . $filename);
         }
     }
 }
Example #4
0
require_once FUNCTIONS . 'string.functions.php';
require_once FUNCTIONS . 'multibyte_string.functions.php';
require_once FUNCTIONS . 'iconv.functions.php';
require_once FUNCTIONS . 'datetime.functions.php';
require_once FUNCTIONS . 'server.functions.php';
require_once FUNCTIONS . 'network.functions.php';
require_once FUNCTIONS . 'sessions.functions.php';
require_once FUNCTIONS . 'filesystem.functions.php';
require_once FUNCTIONS . 'validate_filters.functions.php';
require_once FUNCTIONS . 'url.functions.php';
require_once FUNCTIONS . 'php_options.functions.php';
require_once FUNCTIONS . 'cliprz.functions.php';
/**
 * @def (string) C_URL - Get website url.
 */
define("C_URL", c_url(), true);
// Include Cliprz Flags
require_once SYS_PATH . "flags/flags.php";
// call core calss.
if (file_exists(SYS_PATH . 'cliprz' . DS . 'cliprz.php')) {
    require_once SYS_PATH . 'cliprz' . DS . 'cliprz.php';
} else {
    trigger_error(SYS_PATH . 'cliprz' . DS . 'cliprz.php Not found.');
}
//cliprz::get_instance();
cliprz::system_use(security, security);
cliprz::system_use(language . 's', language);
cliprz::system_use(error . 's', error);
if ($_config['db']['use_database'] == true) {
    define("database", 'database', true);
    cliprz::system_use(database . 's', database);
Example #5
0
<body>

<div class="logo">
    <img src="<?php 
echo c_image("logo.png");
?>
" alt="Cliprz" />
</div>

<div class="content">
<h2>Welcome</h2>
Welcome to Cliprz framework, Cliprz is free and open source PHP Framework,
this framework is easy, fast and safe to use,
you can learn more about Cliprz framework through <a href="http://cliprz.org/manual">Manual</a> documents.
Visit the official site periodically for the latest releases and updates. for informations visit <a href="<?php 
echo c_url('cliprzinfo');
?>
">cliprzinfo();</a>
<br />
<br />
You can edit this page by visiting
<div class="path">
    cliprz_application/views/home.page.php
</div>
<br />
<br />
You can edit controllers of this page by visiting
<div class="path">
    cliprz_application/controllers/home.php
</div>
<br />