Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
amini7 committed Jul 21, 2014
0 parents commit 726fb5f
Show file tree
Hide file tree
Showing 342 changed files with 92,331 additions and 0 deletions.
46 changes: 46 additions & 0 deletions mysql/zarinpalm.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

CREATE TABLE IF NOT EXISTS `p_onlinetrans` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) collate utf8_persian_ci NOT NULL,
`email` varchar(60) collate utf8_persian_ci NOT NULL,
`desc` varchar(255) collate utf8_persian_ci NOT NULL,
`au` varchar(50) collate utf8_persian_ci NOT NULL,
`amount` varchar(100) collate utf8_persian_ci NOT NULL,
`date` int(11) NOT NULL,
`status` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci AUTO_INCREMENT=1 ;


CREATE TABLE IF NOT EXISTS `p_settings` (
`id` int(11) NOT NULL,
`name` varchar(150) collate utf8_persian_ci NOT NULL,
`address` text collate utf8_persian_ci NOT NULL,
`phonenum` varchar(50) collate utf8_persian_ci NOT NULL,
`desc` text collate utf8_persian_ci NOT NULL,
`mail_address` varchar(30) collate utf8_persian_ci NOT NULL,
`mail_title` varchar(30) collate utf8_persian_ci NOT NULL,
`send_email` tinyint(1) NOT NULL,
`website` varchar(60) collate utf8_persian_ci NOT NULL,
`pin` varchar(36) collate utf8_persian_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;


INSERT INTO `p_settings` (`id`, `name`, `address`, `phonenum`, `desc`, `mail_address`, `mail_title`, `send_email`, `website`, `pin`) VALUES
(1, 'نام سایت', '', '', '', 'info@yousitename.com', 'سامانه ساده پرداز', 1, 'http://pay.sitename.com.com', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');



CREATE TABLE IF NOT EXISTS `p_users` (
`id` int(11) NOT NULL auto_increment,
`email` varchar(35) collate utf8_persian_ci NOT NULL,
`password` varchar(255) collate utf8_persian_ci NOT NULL,
`name` varchar(50) collate utf8_persian_ci NOT NULL,
`role` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci AUTO_INCREMENT=2 ;


INSERT INTO `p_users` (`id`, `email`, `password`, `name`, `role`) VALUES
(1, 'you@yoursite.com', '130a4c96a6f4fa86f4a7f781224c1cf04d0d80a9', 'مدير سايت', 4);
5 changes: 5 additions & 0 deletions www/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
5 changes: 5 additions & 0 deletions www/app/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
13 changes: 13 additions & 0 deletions www/app/app_controller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

class AppController extends Controller{
var $view = 'Theme';
var $theme = 'default';
var $helpers = array('Html', 'Form', 'Javascript');

function beforeRender()
{
$this->pageTitle = '';
}
}
?>
74 changes: 74 additions & 0 deletions www/app/config/acl.ini.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
;<?php die() ?>
; SVN FILE: $Id: acl.ini.php 7945 2008-12-19 02:16:01Z gwoo $
;/**
; * Short description for file.
; *
; *
; * PHP versions 4 and 5
; *
; * CakePHP(tm) : Rapid Development Framework http://www.cakephp.org/
; * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
; *
; * Licensed under The MIT License
; * Redistributions of files must retain the above copyright notice.
; *
; * @filesource
; * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
; * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
; * @package cake
; * @subpackage cake.app.config
; * @since CakePHP(tm) v 0.10.0.1076
; * @version $Revision: 7945 $
; * @modifiedby $LastChangedBy: gwoo $
; * @lastmodified $Date: 2008-12-18 18:16:01 -0800 (Thu, 18 Dec 2008) $
; * @license http://www.opensource.org/licenses/mit-license.php The MIT License
; */

; acl.ini.php - Cake ACL Configuration
; ---------------------------------------------------------------------
; Use this file to specify user permissions.
; aco = access control object (something in your application)
; aro = access request object (something requesting access)
;
; User records are added as follows:
;
; [uid]
; groups = group1, group2, group3
; allow = aco1, aco2, aco3
; deny = aco4, aco5, aco6
;
; Group records are added in a similar manner:
;
; [gid]
; allow = aco1, aco2, aco3
; deny = aco4, aco5, aco6
;
; The allow, deny, and groups sections are all optional.
; NOTE: groups names *cannot* ever be the same as usernames!
;
; ACL permissions are checked in the following order:
; 1. Check for user denies (and DENY if specified)
; 2. Check for user allows (and ALLOW if specified)
; 3. Gather user's groups
; 4. Check group denies (and DENY if specified)
; 5. Check group allows (and ALLOW if specified)
; 6. If no aro, aco, or group information is found, DENY
;
; ---------------------------------------------------------------------

;-------------------------------------
;Users
;-------------------------------------

[username-goes-here]
groups = group1, group2
deny = aco1, aco2
allow = aco3, aco4

;-------------------------------------
;Groups
;-------------------------------------

[groupname-goes-here]
deny = aco5, aco6
allow = aco7, aco8
44 changes: 44 additions & 0 deletions www/app/config/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/* SVN FILE: $Id: bootstrap.php 7945 2008-12-19 02:16:01Z gwoo $ */
/**
* Short description for file.
*
* Long description for file
*
* PHP versions 4 and 5
*
* CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
* Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
* @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
* @package cake
* @subpackage cake.app.config
* @since CakePHP(tm) v 0.10.8.2117
* @version $Revision: 7945 $
* @modifiedby $LastChangedBy: gwoo $
* @lastmodified $Date: 2008-12-18 18:16:01 -0800 (Thu, 18 Dec 2008) $
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
/**
*
* This file is loaded automatically by the app/webroot/index.php file after the core bootstrap.php is loaded
* This is an application wide file to load any function that is not used within a class define.
* You can also use this to include or require any files in your application.
*
*/
/**
* The settings below can be used to set additional paths to models, views and controllers.
* This is related to Ticket #470 (https://trac.cakephp.org/ticket/470)
*
* $modelPaths = array('full path to models', 'second full path to models', 'etc...');
* $viewPaths = array('this path to views', 'second full path to views', 'etc...');
* $controllerPaths = array('this path to controllers', 'second full path to controllers', 'etc...');
*
*/
//EOF
?>
Loading

0 comments on commit 726fb5f

Please sign in to comment.