Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modded src/console.php and Readme.md #125

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ Install vendors:

You need point the document root of your virtual host to /path_to/admingenerator/web

This is an example of VirtualHost:
These are examples for VirtualHosts

Apache 2.x:

<VirtualHost *:80>
DocumentRoot /path_to/admingenerator/web
DirectoryIndex index.php
<Directory "/path_to/admingenerator/web">
Options Indexes FollowSymLinks
Order Allow,Deny
Allow from all
Require alle granted
AllowOverride all
<IfModule mod_php5.c>
php_admin_flag engine on
Expand All @@ -50,6 +51,13 @@ This is an example of VirtualHost:
</Directory>
</VirtualHost>

Lighttpd (a simple one, running with php-fpm on a pi-hole server):

$HTTP["host"] == "myhostname.example.com" {
server.document-root = "/path_to/admingenerator/web/"
url.access-allow = ( "" )
}

You can customize the url using the .htaccess file, maybe this will help you:
[http://stackoverflow.com/questions/24952846/how-do-i-remove-the-web-from-my-url/24953439#24953439](http://stackoverflow.com/questions/24952846/how-do-i-remove-the-web-from-my-url/24953439#24953439)

Expand Down
3 changes: 2 additions & 1 deletion src/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@
$count_externals = 0;
foreach($table_columns as $table_column){
$TABLECOLUMNS_ARRAY .= "\t\t" . "'". $table_column['name'] . "', \n";
$TABLECOLUMNS_TYPE_ARRAY .= "\t\t" . "'". $table_column['type'] . "', \n";
//$TABLECOLUMNS_TYPE_ARRAY .= "\t\t" . "'". $table_column['type'] . "', \n";
$TABLECOLUMNS_TYPE_ARRAY .= "\t\t" . "'". addslashes($table_column['type']) . "', \n";
if(!$table_column['primary'] || ($table_column['primary'] && !$table_column['auto'])){
$TABLECOLUMNS_INITIALDATA_EMPTY_ARRAY .= "\t\t" . "'". $table_column['name'] . "' => '', \n";
$TABLECOLUMNS_INITIALDATA_ARRAY .= "\t\t" . "'". $table_column['name'] . "' => \$row_sql['".$table_column['name']."'], \n";
Expand Down