This is source code of graphonline service. Graphonline helps visualize graph and applies a lot of algorithms.
MIT License.
Client side:
- HTML5 support of client side.
Server side:
- PHP 5.6
- Binary cgi supports. It needs for some algorithm, but almost all can work without it.
- Download repository to local website folder. It should be placed into root of domen. If you want to run graphonline from subdirectory read "Additional steps to run from subdirectory" below.
- Change access rights of directory /tmp. PHP scripts need to create and modify files inside it.
- Run file from browser: /script/merge.php. It merges all js files into one /script/example.js.
- Run file from browser: /cgi-bin/getPluginsList.php?reset. It creates file with list of plug-ins. Just optimization.
- Change default root password in file: /core/config/admin_sector.php
$g_config['admin_sector']['def_pwd'] = 'rootPass';
- Change password to wiki. Change lines:
$DefaultPasswords['admin'] = pmcrypt('pas');
$DefaultPasswords['edit'] = pmcrypt('pas');
In files: /wiki/local/config.php /en/wiki/local/config.php
- Maybe you need to disable autoredirect to https. Commends lines:
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
In files: /.htaccess /wiki/.htaccess /en/wiki/.htaccess
- Some algorithms use binary CGI file (short-path, Eulerian cycle/path and so on). If you want to run them, you need to compile GraphOffline util: https://github.com/UnickSoft/GraphOffline. And place it with name /cgi-bin/GraphCGI.exe
For example you place graphonline sources into http://localhost/graph/ directory.
- Edit .htaccess change RewriteRule to line:
RewriteRule ^(.*)$ /graph/index.php?q=$1 [L,QSA]
- Write your directory name to script\main.js variable SiteDirs:
var SiteDir = "graph/";
- Write your directory to core config core\config\main.php in line SITE_IN_DIR:
define('SITE_IN_DIR', 'graph');
- Run merge.php to apply changes. Run http://localhost/graph/script/merge.php
- Micron (http://zmicron.itkd.ru/) is our engine.
- PmWiki (https://www.pmwiki.org/) in folders: /wiki/ and /en/wiki/
- And others: jquery (https://jquery.com/), bootstrap3 (https://getbootstrap.com/), fontawesome (https://fontawesome.com/).
You can write on github to @UnickSoft or to email admin@graphonline.ru