Git Product home page Git Product logo

swi's Introduction

SWI (Services Web Interface)

About

author siniStar (Austin Ellis)

author email siniStar [at] IRC4Fun [dot] net

author url http://www.Xtheme.org/SWI/

version 3.4.0


Legal

This file is part of SWI.

SWI 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 3 of the License, or (at your option) any later version.

SWI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with SWI. If not, see http://www.gnu.org/licenses/


SWI Web Panel for Xtheme IRC Services (and Atheme & Atheme forks)

SWI is a simple web panel for Xtheme IRC services. It aims to be clean, sleek and fast. With minimul installation and configuration required. SWI is a fork of EGs (https://bitbucket.org/jnewing/egs) with some bug fixes, cosmetic improvements and additional features and consoles in an effort to give users of networks running Atheme Services the ultimate control over their IRC accounts, nicknames, channels, memos, vhosts and BotServ use via the World Wide Web.

Notable New Features:

1) NickServ Settings page
2) ChanServ Settings page
3) ChanServ WAITING list added to OperServ dashboard for networks running chanserv/moderate with Atheme (optional)
4) HostServ WAITING list added to OperServ dashboard (optional)
5) BotServ consoles added: BOTLIST, ASSIGN, UNASSIGN and BOT MANAGEMENT (add/change/delete) for Services Operators
6) Current Sessions page added to main dashboard
7) Facebook & Twitter links for networks (optional)
8) GroupServ console & functionality added (optional)
9) ReCaptcha v2
10) Configure whether to show +qah in flags assistance to users based on how the network is configured.
11) Update to core framework for newer versions of PHP to get rid of warnings and notices.
12) Update config.php to config.example.php so that existing configs are not overwritten by updates.

Support

If you need support please come talk to me on irc.IRC4Fun.net in #SWI however before doing that make sure you read this file, at least twice. You can also find me on Freenode (chat.freenode.net) in #SWI

For News, Updates and Security Advisories, please subscribe to the XthemeOrg News mailing list at: https://www.irc4fun.net/xtheme-news/


Installation

During this installation I'm going to assume a few things.

1) that you know your way around a shell
2) that you have some understanding of the mysql cli client tool
3) That you have Xtheme IRC Services (or an Atheme fork) experience running with both the httpd and xmlrpc modules running.

First your going to need to obtain a copy of SWI one can be found here

https://github.com/XthemeOrg/SWI/

Next up you're going to have to edit the swi/config/config.example.php file to reflect the settings of your web server and Xtheme installation.

Cleaner URI's (Optional)

You may want to remove the index.php in the URI.

http://www.yournetwork.net/swi/index.php/more/stuffhere

to something like

http://www.yournetwork.net/swi/more/stuffhere

This is current supported on Apache, Lighttpd, Nginx and any other web server that supports some form of URI re-writing. Below I've included a few example of re-writes.

Apache

<IfModule mod_rewrite.c>
	RewriteEngine On
	
	# You need to change the path to match that of your installation.
	# For example if you installed the SWI system to http://www.yournetwork.net/swi/ you would 
	# change that line to read:
	# RewriteBase /swi/
	#     
	# Alternately if your install was located on a subdomain example: http://services.yournetwork.net 
	# we would change the RewriteBase line to read:
	# RewriteBase /
	
	RewriteBase /swi/
	
	RewriteCond %{REQUEST_URI} ^system.*
	RewriteRule ^(.*)$ /index.php?/$1 [L]
	
	RewriteCond %{REQUEST_URI} ^application.*
	RewriteRule ^(.*)$ /index.php?/$1 [L]
	
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
	ErrorDocument 404 /index.php
</IfModule>

Lighthttpd

url.rewrite-once = (
	"/(.*)\.(.*)" => "$0",
	"/(css|files|img|js|stats)/" => "$0",
	"^/([^.]+)$" => "/index.php/$1"
)

Nginx

server {

	listen   80;
	
	root /var/www/nginx-default/;
	access_log  /var/log/nginx/localhost.access.log;
	index index.php index.html index.htm;

	error_page 500 502 503 504  /50x.html;

	location /swi/ {
    	
    	if (-f $request_filename) {
        	expires max;
        	break;
    	}
	
    	if (!-e $request_filename) {
        	rewrite ^/swi/(.*)$ /swi/index.php/$1 last;
    	}
	}

	location = /50x.html {
    	root /var/www/nginx-default;
	}

	location /swi/index.php {
    	fastcgi_pass 127.0.0.1:9000;
    	fastcgi_index index.php;
    	fastcgi_param SCRIPT_FILENAME /var/www/nginx-default/swi/index.php;
    	include fastcgi_params;
	}
}

Finished

That's it! You should be able to direct your browser to http://www.yournetwork.net/swi/ and login using your Xtheme/Atheme Nickserv account nickname and password.


Issues/Bugs

Please report all issues/bugs to Issues (https://github.com/XthemeOrg/SWI/issues) (in addition to IRC).


Stay Current with XthemeOrg

For News, Updates and Security Advisories, please subscribe to the XthemeOrg News mailing list at: https://www.irc4fun.net/xtheme-news/

swi's People

Contributors

adamus1red avatar fgrosswig avatar rjhornsby avatar sinistar7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

swi's Issues

Message: Resource ID#4 used as offset, casting to integer (4)

lot of error messages displayed as follow:

A PHP Error was encountered

Severity: Notice

Message: Resource ID#4 used as offset, casting to integer (4)
Filename: libraries/Xmlrpc.php
Line Number: 538

could this be fixed for a php 5.6 above imstallation?

Thanks

installation instruction unclear

hello,

we have installed the xtheme service and enabled the xmlrpc and http settings in the config. However, we dont get thie interface to run. how can we install the interface correctly? is there any thing which has to be as precondition considered?

why i am asking, because there is a database.php file. Whats all about this? how does the database to be arranged? is the xtheme to be connected to a database? ❓❓❓

thanks for sharing you instructuions.

SWI Dont work with PHP 7

Hi.

Last version of SWI don't work with PHP 7 - Hope it can be fixed.

I get this errors when I'm try to load the page.

** A PHP Error was encountered
Severity: Notice

Message: Only variables should be assigned by reference

Filename: core/Loader.php

Line Number: 46 **

Lost Password Tab

SWI need to have 1 more tab "Lost Passwd" beside Sign-In and Register. With that tab, user who lost their passwd can easily request to get back their passwd.

SWI v4

  • Various cleanups are needed in headers
  • Remove extra indentions added by mistake ages ago
  • Add Lost Password functionality
  • Update config options (allow more customizing of SWI for networks' use/setup)
  • Atheme is still behind in functionality that exists in forks; perhaps create seperate space for SWI 4 and/or potentially rename SWI 4 for Xtheme IRC Services networks'.
  • Fix some pages/functionality so that it does not require user to refresh the page or click a Refresh button.
  • New or Updates to the Front-end Design (especially navigational menus to make room for new features)
  • Minor Documentation updates/additions.

Vhost Request

When requesting a vhost within SWI interface i get nick ? not registered

I've followed the install guide, every else works fine

PHP XMLRPC Error

Hello,

we have the following error:

A PHP Error was encountered
Severity: Warning
Message: error_log(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
Filename: libraries/Xmlrpc.php
Line Number: 282

what can we do?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.