mirror of
https://github.com/donl/gPanel.git
synced 2026-06-30 06:12:06 -06:00
Fix import paths
* github.com/Ennovar/gPanel -> github.com/kentonh/gPanel
This commit is contained in:
parent
4fb7f859fd
commit
b9f7c5d065
48 changed files with 73 additions and 73 deletions
|
|
@ -5,8 +5,8 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/gpserver"
|
||||
"github.com/Ennovar/gPanel/pkg/router"
|
||||
"github.com/kentonh/gPanel/pkg/gpserver"
|
||||
"github.com/kentonh/gPanel/pkg/router"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ import (
|
|||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/Ennovar/gPanel/pkg/emailer"
|
||||
"github.com/Ennovar/gPanel/pkg/encryption"
|
||||
"github.com/Ennovar/gPanel/pkg/gpaccount"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/emailer"
|
||||
"github.com/kentonh/gPanel/pkg/encryption"
|
||||
"github.com/kentonh/gPanel/pkg/gpaccount"
|
||||
"github.com/george-e-shaw-iv/nixtools"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import (
|
|||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/Ennovar/gPanel/pkg/gpaccount"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/gpaccount"
|
||||
"github.com/george-e-shaw-iv/nixtools"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/gpaccount"
|
||||
"github.com/kentonh/gPanel/pkg/gpaccount"
|
||||
)
|
||||
|
||||
func List(res http.ResponseWriter, req *http.Request, logger *log.Logger, bundles map[string]*gpaccount.Controller) bool {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package bundle
|
|||
import (
|
||||
"os"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func GetPorts(dir string) (error, int, int) {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func Link(res http.ResponseWriter, req *http.Request, logger *log.Logger, PublicPort int) bool {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"log"
|
||||
"strconv"
|
||||
"encoding/json"
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func List(res http.ResponseWriter, req *http.Request, logger *log.Logger) bool {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func Unlink(res http.ResponseWriter, req *http.Request, logger *log.Logger) bool {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func Filter(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func List(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func Unfilter(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/file"
|
||||
"github.com/kentonh/gPanel/pkg/file"
|
||||
)
|
||||
|
||||
// Read function is accessed from api/logs/read and will attempt to read
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/public"
|
||||
"github.com/kentonh/gPanel/pkg/public"
|
||||
)
|
||||
|
||||
// Maintenance function is called from /api/server/maintenance and will place the public server into
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/public"
|
||||
"github.com/kentonh/gPanel/pkg/public"
|
||||
)
|
||||
|
||||
// Restart function is called from /api/server/restart and will attempt to shutdown, either gracefully
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/public"
|
||||
"github.com/kentonh/gPanel/pkg/public"
|
||||
)
|
||||
|
||||
// Shutdown function is called from /api/server/shutdown and will attempt to shutdown, either gracefully
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/public"
|
||||
"github.com/kentonh/gPanel/pkg/public"
|
||||
)
|
||||
|
||||
// Start function is called from /api/server/start and turn the public server on.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/public"
|
||||
"github.com/kentonh/gPanel/pkg/public"
|
||||
)
|
||||
|
||||
// Status function is called from api/server/status and will return the current status of
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"log"
|
||||
"strconv"
|
||||
"encoding/json"
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func AddNameserver(res http.ResponseWriter, req *http.Request, logger *log.Logger) bool {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
"log"
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"net/http"
|
||||
"log"
|
||||
"strconv"
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"log"
|
||||
"strconv"
|
||||
"encoding/json"
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func GetSMTP(res http.ResponseWriter, req *http.Request, logger *log.Logger) bool {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"net/http"
|
||||
"log"
|
||||
"strconv"
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"net/http"
|
||||
"log"
|
||||
"strconv"
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import (
|
|||
"log"
|
||||
"strconv"
|
||||
"encoding/json"
|
||||
"github.com/Ennovar/gPanel/pkg/emailer"
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/emailer"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func SetSMTP(res http.ResponseWriter, req *http.Request, logger *log.Logger) bool {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func Add(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func List(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func Remove(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/Ennovar/gPanel/pkg/encryption"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/encryption"
|
||||
jwt "github.com/dgrijalva/jwt-go"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func Delete(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Package user is a child of package api to handle api calls concerning users
|
||||
package user
|
||||
|
||||
import "github.com/Ennovar/gPanel/pkg/database"
|
||||
import "github.com/kentonh/gPanel/pkg/database"
|
||||
|
||||
// GetSecret is not accessible from the any client side request. It is
|
||||
// only used on the server side to help verify users are who they say they
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
func List(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/Ennovar/gPanel/pkg/encryption"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/encryption"
|
||||
)
|
||||
|
||||
// Register function is accessed by an API call from the webhost root
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/Ennovar/gPanel/pkg/encryption"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/encryption"
|
||||
)
|
||||
|
||||
func UpdatePassword(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/emailer"
|
||||
"github.com/kentonh/gPanel/pkg/emailer"
|
||||
"github.com/boltdb/bolt"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -5,14 +5,14 @@ import (
|
|||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/api/domain"
|
||||
"github.com/Ennovar/gPanel/pkg/api/ip"
|
||||
logapi "github.com/Ennovar/gPanel/pkg/api/log"
|
||||
"github.com/Ennovar/gPanel/pkg/api/server"
|
||||
"github.com/Ennovar/gPanel/pkg/api/settings"
|
||||
"github.com/Ennovar/gPanel/pkg/api/ssh"
|
||||
"github.com/Ennovar/gPanel/pkg/api/subdomain"
|
||||
"github.com/Ennovar/gPanel/pkg/api/user"
|
||||
"github.com/kentonh/gPanel/pkg/api/domain"
|
||||
"github.com/kentonh/gPanel/pkg/api/ip"
|
||||
logapi "github.com/kentonh/gPanel/pkg/api/log"
|
||||
"github.com/kentonh/gPanel/pkg/api/server"
|
||||
"github.com/kentonh/gPanel/pkg/api/settings"
|
||||
"github.com/kentonh/gPanel/pkg/api/ssh"
|
||||
"github.com/kentonh/gPanel/pkg/api/subdomain"
|
||||
"github.com/kentonh/gPanel/pkg/api/user"
|
||||
)
|
||||
|
||||
func (con *Controller) apiHandler(res http.ResponseWriter, req *http.Request) (bool, bool) {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import (
|
|||
"encoding/base64"
|
||||
"encoding/json"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/api/user"
|
||||
"github.com/kentonh/gPanel/pkg/api/user"
|
||||
jwt "github.com/dgrijalva/jwt-go"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/public"
|
||||
"github.com/kentonh/gPanel/pkg/public"
|
||||
)
|
||||
|
||||
type Controller struct {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
"strings"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/routing"
|
||||
"github.com/kentonh/gPanel/pkg/routing"
|
||||
)
|
||||
|
||||
// ServeHTTP function routes all requests for the private webhost server. It is used in the main
|
||||
|
|
|
|||
|
|
@ -8,12 +8,12 @@ import (
|
|||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/api/bundle"
|
||||
logapi "github.com/Ennovar/gPanel/pkg/api/log"
|
||||
"github.com/Ennovar/gPanel/pkg/api/server"
|
||||
"github.com/Ennovar/gPanel/pkg/api/user"
|
||||
"github.com/Ennovar/gPanel/pkg/api/settings"
|
||||
"github.com/Ennovar/gPanel/pkg/api/domain"
|
||||
"github.com/kentonh/gPanel/pkg/api/bundle"
|
||||
logapi "github.com/kentonh/gPanel/pkg/api/log"
|
||||
"github.com/kentonh/gPanel/pkg/api/server"
|
||||
"github.com/kentonh/gPanel/pkg/api/user"
|
||||
"github.com/kentonh/gPanel/pkg/api/settings"
|
||||
"github.com/kentonh/gPanel/pkg/api/domain"
|
||||
)
|
||||
|
||||
func (con *Controller) apiHandler(res http.ResponseWriter, req *http.Request) (bool, bool) {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/api/user"
|
||||
"github.com/kentonh/gPanel/pkg/api/user"
|
||||
jwt "github.com/dgrijalva/jwt-go"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/api/bundle"
|
||||
"github.com/Ennovar/gPanel/pkg/gpaccount"
|
||||
"github.com/kentonh/gPanel/pkg/api/bundle"
|
||||
"github.com/kentonh/gPanel/pkg/gpaccount"
|
||||
)
|
||||
|
||||
func (con *Controller) detectBundles() error {
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ package gpserver
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/Ennovar/gPanel/pkg/encryption"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/encryption"
|
||||
)
|
||||
|
||||
func (con *Controller) setDefaults() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/gpaccount"
|
||||
"github.com/kentonh/gPanel/pkg/gpaccount"
|
||||
)
|
||||
|
||||
type Controller struct {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
"strings"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/routing"
|
||||
"github.com/kentonh/gPanel/pkg/routing"
|
||||
)
|
||||
|
||||
func (con *Controller) ServeHTTP(res http.ResponseWriter, req *http.Request) {
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ package public
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/Ennovar/gPanel/pkg/networking"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/networking"
|
||||
)
|
||||
|
||||
func (con *Controller) Filter(req *http.Request, ftype string) bool {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"golang.org/x/crypto/acme/autocert"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/Ennovar/gPanel/pkg/routing"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/routing"
|
||||
)
|
||||
|
||||
func (con *Controller) ServePHP(res http.ResponseWriter, path string) {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"log"
|
||||
"sync"
|
||||
|
||||
"github.com/Ennovar/gPanel/pkg/database"
|
||||
"github.com/kentonh/gPanel/pkg/database"
|
||||
)
|
||||
|
||||
type Router struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue