Permalink
Browse files

Replaced knjphpframework with knj

  • Loading branch information...
1 parent 7e3a08e commit 0fa0c853066602e78edc90ddf85e97f9d2400cea @xiplias xiplias committed Jul 13, 2010
Showing with 88 additions and 88 deletions.
  1. BIN .DS_Store
  2. +1 −1 class_dkcvr.php
  3. +1 −1 class_gtk2_entrydate.php
  4. +1 −1 class_gtk2_mousegestures.php
  5. +1 −1 class_gtksettings_paned.php
  6. +1 −1 class_gtksettings_treeview.php
  7. +1 −1 class_gtksettings_window.php
  8. +1 −1 class_knj_clist.php
  9. +4 −4 class_knj_sms.php
  10. +2 −2 class_knj_ssh2.php
  11. +1 −1 class_knj_tray_percent.php
  12. +2 −2 class_transmissionremote.php
  13. +1 −1 class_treeviewsetting.php
  14. +1 −1 class_windowsetting.php
  15. +10 −10 dbconn/class_dbconn.php
  16. +1 −1 dbconn/class_dbconn_row.php
  17. +1 −1 functions_knj_documents.php
  18. +1 −1 functions_knj_extensions.php
  19. +4 −4 functions_knj_filesystem.php
  20. +1 −1 functions_knj_locales.php
  21. +1 −1 functions_knj_msgbox.php
  22. +1 −1 functions_knj_os.php
  23. +1 −1 functions_knj_picture.php
  24. +2 −2 functions_knj_sql.php
  25. +1 −1 functions_knj_transmission_daemon.php
  26. +2 −2 functions_knj_web.php
  27. +2 −2 functions_knj_wireless.php
  28. +2 −2 functions_locate.php
  29. +3 −3 gallery/class_knjgallery.php
  30. +2 −2 gallery/class_knjgallery_group.php
  31. +1 −1 gallery/class_knjgallery_person.php
  32. +1 −1 inc_error_reporter.php
  33. +3 −3 install_knjphpframework.php
  34. BIN knjdb/drivers/.DS_Store
  35. +1 −1 knjdb/drivers/mssql/class_knjdb_mssql.php
  36. +1 −1 knjdb/drivers/mysql/class_knjdb_mysql.php
  37. +1 −1 knjdb/drivers/mysql/class_knjdb_mysql_indexes.php
  38. +1 −1 knjdb/drivers/mysql/class_knjdb_mysql_rows.php
  39. +1 −1 knjdb/drivers/mysqli/class_knjdb_mysqli.php
  40. +1 −1 knjdb/drivers/mysqli/class_knjdb_mysqli_indexes.php
  41. +1 −1 knjdb/drivers/mysqli/class_knjdb_mysqli_rows.php
  42. +1 −1 knjdb/drivers/pdo/class_knjdb_pdo.php
  43. +1 −1 knjdb/drivers/sqlite2/class_knjdb_sqlite2.php
  44. +1 −1 knjdb/drivers/sqlite2/class_knjdb_sqlite2_rows.php
  45. +1 −1 knjdb/drivers/sqlite3/class_knjdb_sqlite3.php
  46. +1 −1 knjdb/drivers/sqlite3/class_knjdb_sqlite3_indexes.php
  47. +1 −1 knjdb/drivers/sqlite3/class_knjdb_sqlite3_rows.php
  48. +1 −1 knjobjects/class_exampleobject.php
  49. +1 −1 knjobjects/class_knjobjects.php
  50. +2 −2 knjsms/class_knjsms.php
  51. +1 −1 knjsms/drivers/class_knjsms_bibob.php
  52. +1 −1 knjsms/drivers/class_knjsms_smsd_db.php
  53. +2 −2 knjsms/drivers/class_knjsms_sshgnokii.php
  54. +6 −6 scripts/Packages.php
  55. +1 −1 scripts/image.php
  56. +1 −1 scripts/svncleaner.php
  57. +1 −1 win_status.php
View
BIN .DS_Store
Binary file not shown.
View
@@ -5,7 +5,7 @@ class dkcvr{
private $http;
function __construct(){
- require_once("knjphpframework/class_knj_httpbrowser.php");
+ require_once("knj/class_knj_httpbrowser.php");
$this->http = new knj_httpbrowser();
$this->http->connect("cvr.dk");
}
View
@@ -11,7 +11,7 @@ class GtkEntryDate extends GtkHBox{
function __construct(){
parent::__construct();
- require_once "knjphpframework/class_knj_eventmanager.php";
+ require_once "knj/class_knj_eventmanager.php";
$this->eventm = new EventManager();
$this->eventm->addEvent("changed");
$this->eventm->addEvent("changed-manually");
@@ -5,7 +5,7 @@ class GtkMouseGestures{
private $proc;
function __construct(){
- require_once("knjphpframework/class_knj_eventmanager.php");
+ require_once("knj/class_knj_eventmanager.php");
$this->em = new EventManager();
$this->em->addEvent(array("mouseclick", "north", "east", "south", "west", "northeast", "northwest", "southeast", "southwest"));
@@ -1,5 +1,5 @@
<?php
- require_once("knjphpframework/class_exceptions.php");
+ require_once("knj/class_exceptions.php");
/** This object handels paned-settings. */
class GtkSettingsPaned{
@@ -223,7 +223,7 @@ function showPopupMenu(){
);
}
- require_once("knjphpframework/class_knj_popup.php");
+ require_once("knj/class_knj_popup.php");
$popup = new knj_popup(
$arr_popup,
array(
@@ -1,7 +1,7 @@
<?
//Check if function exists to make it compatible, if somehow the function already got loaded through another file.
if (!function_exists("destroy_obj")){
- require_once("knjphpframework/functions_knj_objects.php");
+ require_once("knj/functions_knj_objects.php");
}
/** This class keeps track of window sizes- and positions. It also loads and restores them, when they are created again. */
View
@@ -55,7 +55,7 @@ function Action($itemtitle){
Written by Kasper Johansen <kaspernj@gmail.com>
*/
- require_once "knjphpframework/functions_knj_strings.php";
+ require_once "knj/functions_knj_strings.php";
class knj_clist{
//This variabled is passed when a object from knj_clist() is dragged somewhere.
var $other;
View
@@ -16,13 +16,13 @@ function setOpts($arr){
//do nothing.
}elseif($key == "mode"){
if ($value == "bibob"){
- require_once("knjphpframework/functions_knj_extensions.php");
+ require_once("knj/functions_knj_extensions.php");
knj_dl(array("soap", "openssl", "xml"));
}elseif($value == "happii"){
- require_once("knjphpframework/class_knj_httpbrowser.php");
+ require_once("knj/class_knj_httpbrowser.php");
$this->http = new knj_httpbrowser();
}elseif($value == "cbb"){
- require_once("knjphpframework/class_knj_httpbrowser.php");
+ require_once("knj/class_knj_httpbrowser.php");
$this->http = new knj_httpbrowser();
}elseif($value == "gnokii"){
//valid.
@@ -77,7 +77,7 @@ function connect(){
throw new Exception("Could not log in.");
}
}elseif($this->opts["mode"] == "gnokii"){
- require_once("knjphpframework/functions_knj_os.php");
+ require_once("knj/functions_knj_os.php");
$cmd = $this->opts["gnokiiexe"] . " --config " . $this->opts["gnokiiconf"] . " --identify";
$res = knj_os::shellCMD($cmd);
View
@@ -9,7 +9,7 @@ function __construct($args){
throw new Exception("No conn supplied in parameters.");
}
- require_once("knjphpframework/functions_knj_filesystem.php");
+ require_once("knj/functions_knj_filesystem.php");
$this->conn = $args["conn"];
if (!$args["shell"]){
@@ -85,7 +85,7 @@ function getFile($path, $args = array()){
/** Saves a file on the server. */
function putFile($path, $content){
- require_once("knjphpframework/functions_knj_strings.php");
+ require_once("knj/functions_knj_strings.php");
$lines = explode("\n", $content);
$first = true;
@@ -1,5 +1,5 @@
<?
- require_once "knjphpframework/functions_knj_extensions.php";
+ require_once "knj/functions_knj_extensions.php";
if (!knj_dl("gd")){
die("Could not load the GD-extension.\n");
}
@@ -1,6 +1,6 @@
<?php
- require_once("knjphpframework/functions_knj_strings.php");
- require_once("knjphpframework/functions_knj_os.php");
+ require_once("knj/functions_knj_strings.php");
+ require_once("knj/functions_knj_os.php");
/** This is a PHP-framework for the transmission-remote. */
class transmissionremote{
@@ -185,7 +185,7 @@ function showPopupMenu(){
);
}
- require_once("knjphpframework/class_knj_popup.php");
+ require_once("knj/class_knj_popup.php");
$popup = new knj_popup(
$arr_popup,
array(
View
@@ -1,7 +1,7 @@
<?
//Check if function exists to make it compatible, if somehow the function already got loaded through another file.
if (!function_exists("destroy_obj")){
- require_once("knjphpframework/functions_knj_objects.php");
+ require_once("knj/functions_knj_objects.php");
}
/** This class keeps track of window sizes- and positions. It also loads and restores them, when they are created again. */
View
@@ -1,14 +1,14 @@
<?
- require_once("knjphpframework/dbconn/class_dbconn_sqlconverter.php");
- require_once("knjphpframework/dbconn/class_dbconn_indexes.php");
- require_once("knjphpframework/dbconn/class_dbconn_columns.php");
- require_once("knjphpframework/dbconn/class_dbconn_tables.php");
- require_once("knjphpframework/dbconn/class_dbconn_dbs.php");
- require_once("knjphpframework/dbconn/class_dbconn_row.php");
- require_once("knjphpframework/dbconn/class_dbconn_fetchresult.php");
- require_once("knjphpframework/functions_knj_extensions.php");
- require_once("knjphpframework/functions_knj_sql.php");
- require_once("knjphpframework/class_exceptions.php");
+ require_once("knj/dbconn/class_dbconn_sqlconverter.php");
+ require_once("knj/dbconn/class_dbconn_indexes.php");
+ require_once("knj/dbconn/class_dbconn_columns.php");
+ require_once("knj/dbconn/class_dbconn_tables.php");
+ require_once("knj/dbconn/class_dbconn_dbs.php");
+ require_once("knj/dbconn/class_dbconn_row.php");
+ require_once("knj/dbconn/class_dbconn_fetchresult.php");
+ require_once("knj/functions_knj_extensions.php");
+ require_once("knj/functions_knj_sql.php");
+ require_once("knj/class_exceptions.php");
/** This class can connect to different type of databases. It can also output data from each database. */
class DBConn extends DBConnDBs{
@@ -1,5 +1,5 @@
<?
- require_once("knjphpframework/functions_knj_sql.php");
+ require_once("knj/functions_knj_sql.php");
/** This class represents a single row in a table. */
class dbconn_row{
@@ -3,7 +3,7 @@
class knj_doc{
/** Converts a Word-content (or Word-file) into plain-text. */
static function wordtext($cont, $type = null){
- require_once "knjphpframework/functions_knj_os.php";
+ require_once "knj/functions_knj_os.php";
$catdoc_status = knj_os::checkCMD("catdoc");
if (!$catdoc_status){
throw new Exception("catdoc could not be found on this system.");
@@ -9,7 +9,7 @@ function knj_dl($extension){
return true;
}
- require_once "knjphpframework/functions_knj_os.php";
+ require_once "knj/functions_knj_os.php";
$os = knj_os::getOS();
if (extension_loaded($extension)){
@@ -90,8 +90,8 @@ function fs_getFileInfo($file){
throw new Exception("fs_getMods(): The file does not exist (" . $file . ").");
}
- require_once "knjphpframework/functions_knj_strings.php";
- require_once "knjphpframework/functions_knj_os.php";
+ require_once "knj/functions_knj_strings.php";
+ require_once "knj/functions_knj_os.php";
$stat = knj_os::systemCMD("ls -l " . knj_string_unix_safe($file));
$return["mods"]["user"]["mod"] = substr($stat, 1, 3);
@@ -293,8 +293,8 @@ static function fileInfo($file){
throw new Exception("The file does not exist (" . $file . ").");
}
- require_once("knjphpframework/functions_knj_os.php");
- require_once("knjphpframework/functions_knj_strings.php");
+ require_once("knj/functions_knj_os.php");
+ require_once("knj/functions_knj_strings.php");
$result = knj_os::shellCMD("file " . knj_string_unix_safe($file));
$result = substr($result["result"], strlen($file) + 2, -1);
@@ -62,7 +62,7 @@ function knjlocales_setmodule($domain, $dir, $module = "ext", $language = "auto"
_bind_textdomain_codeset($domain, "UTF-8");
_textdomain($domain);
}elseif($module == "ext"){
- require_once "knjphpframework/functions_knj_extensions.php";
+ require_once "knjnj_extensions.php";
if (!knj_dl("gettext")){
throw new exception("gettext-module could not be loaded.");
}
View
@@ -219,7 +219,7 @@ function knj_listbox($title, $message, $items, $args = array()){
$return = false;
if ($result == Gtk::RESPONSE_YES){
if ($args["multiple"] == true){
- require_once("knjphpframework/functions_treeview.php");
+ require_once("knj/functions_treeview.php");
$rows = $tv_items->get_selection()->get_selected_rows();
if ($rows[1]){
View
@@ -35,7 +35,7 @@ static function getProcs($args = null){
$grep = $args["grep"];
$command = "ps aux | " . $grep;
}elseif(is_string($args) && strlen($args) > 0){
- require_once "knjphpframework/functions_knj_strings.php";
+ require_once "knj/functions_knj_strings.php";
$grep = "grep " . knj_string_unix_safe($args);
$command = "ps aux | " . $grep;
}else{
@@ -81,7 +81,7 @@ function picture_openrandomformat($image, $mime = false){
}elseif($mime == "image/gif"){
$img = ImageCreateFromGIF($image);
}elseif($mime == "image/bmp"){
- require_once("knjphpframework/functions_knj_picture_bmp.php");
+ require_once("knj/functions_knj_picture_bmp.php");
return ImageCreateFromBMP($image);
}elseif($mime == "image/vnd.wbmp"){
return ImageCreateFromWBMP($image);
View
@@ -27,12 +27,12 @@ function sql_setDBType($dbtype){
if ($dbtype == "sqlite" || $dbtype == "sqlite3"){
if (!function_exists("sqlite_escape_string")){
- require_once("knjphpframework/functions_knj_extensions.php");
+ require_once("knj/functions_knj_extensions.php");
knj_dl("sqlite");
}
}elseif($dbtype == "mysql"){
if (!function_exists("mysql_escape_string")){
- require_once("knjphpframework/functions_knj_extensions.php");
+ require_once("knj/functions_knj_extensions.php");
knj_dl("mysql");
}
}
@@ -1,7 +1,7 @@
<?
/** Parses a list of downloads. */
function transdaemon_getList($cont){
- require_once("knjphpframework/functions_knj_strings.php");
+ require_once("knj/functions_knj_strings.php");
if (!preg_match_all("/(.+) \(([0-9.]+) (\S+)\) - ([0-9.]+)% .*/", $cont, $matches)){
throw new Exception("Could not parse list.\n\n" . "Content:\n" . $cont);
View
@@ -1,6 +1,6 @@
<?
/** This file contains functions that may come in handy when building web-applications. */
- //require_once("knjphpframework/functions_knj_sql.php");
+ //require_once("knj/functions_knj_sql.php");
global $knj_web;
$knj_web = array(
"col_id_name" => "id"
@@ -455,7 +455,7 @@ static function getVersion(){
/** Returns the registered operating-system - "windows", "linux", "mac" or "bot". */
static function getOS(){
- require_once("knjphpframework/functions_array.php");
+ require_once("knj/functions_array.php");
$bots = array(
"yahoo! slurp",
"msnbot",
@@ -1,7 +1,7 @@
<?
/** These functions are currently Linux-only! */
function knj_wl_getAdapters($adapter = null){
- require_once "knjphpframework/functions_knj_os.php";
+ require_once "knj/functions_knj_os.php";
$os = knj_os::getOS();
if ($os["os"] == "linux"){
@@ -58,7 +58,7 @@ function knj_wl_getAPs($adapter){
return false;
}
- require_once("knjphpframework/functions_knj_os.php");
+ require_once("knj/functions_knj_os.php");
$aps_cmd = knj_os::shellCMD("iwlist " . $adapter . " scan");
if (strlen($aps_cmd["error"]) > 0){
throw new Exception("Could not get aps: " . trim($aps_cmd["error"]));
View
@@ -1,8 +1,8 @@
<?
/** This function handels the locales-command on Linux-systems in an easy way. */
function knj_locate($string){
- require_once("knjphpframework/functions_knj_os.php");
- require_once("knjphpframework/functions_knj_strings.php");
+ require_once("knj/functions_knj_os.php");
+ require_once("knj/functions_knj_strings.php");
//Error handeling.
@@ -99,7 +99,7 @@ function getGroup($id, $data = null){
}
if (!$this->groups[$id]){
- require_once("knjphpframework/gallery/class_knjgallery_group.php");
+ require_once("knj/gallery/class_knjgallery_group.php");
$this->groups[$id] = new knj_gallery_group($this, $id, $data);
}
@@ -118,7 +118,7 @@ function getPicture($id){
/** Returns a person-object from the ID. */
function getPerson($id, $data = null){
if (!$this->persons_list[$id]){
- require_once("knjphpframework/gallery/class_knjgallery_person.php");
+ require_once("knj/gallery/class_knjgallery_person.php");
$this->persons_list[$id] = new knj_gallery_person($this, $id, $data);
}
@@ -128,7 +128,7 @@ function getPerson($id, $data = null){
/** Returns a view-object from the ID. */
function getView($id, $data = null){
if (!$this->views_list[$id]){
- require_once("knjphpframework/gallery/class_knjgallery_view.php");
+ require_once("knj/gallery/class_knjgallery_view.php");
$this->views_list[$id] = new knj_gallery_view($this, $id, $data);
}
@@ -38,7 +38,7 @@ function getPictures(){
/** Returns a picture by its ID. */
function getPicture($id, $data = null){
if (!$this->picture[$id]){
- require_once("knjphpframework/gallery/class_knjgallery_picture.php");
+ require_once("knj/gallery/class_knjgallery_picture.php");
$this->pictures[$id] = new knj_gallery_picture($this, $id, $data);
}
@@ -115,7 +115,7 @@ function getView(){
}
//Create a new view with all the pictures from this group.
- require_once("knjphpframework/gallery/class_knjgallery_view.php");
+ require_once("knj/gallery/class_knjgallery_view.php");
$view = knj_gallery_view::createNew($this->knj_gallery);
$view->setData(array("group_id" => $this->get("id")));
@@ -75,7 +75,7 @@ function getView(){
}
//Create new.
- require_once("knjphpframework/gallery/class_knjgallery_view.php");
+ require_once("knj/gallery/class_knjgallery_view.php");
$view = knj_gallery_view::createNew($this->knj_gallery, array("person_id" => $this->get("id")));
return $view;
}
View
@@ -137,7 +137,7 @@ function knj_error_reporter_activate($args = array()){
}
}
- require_once("knjphpframework/functions_knj_web.php");
+ require_once("knj/functions_knj_web.php");
$activate = true;
if (($knj_error_reporter["ignore_javabots"] || $knj_error_reporter["ignore_bots"]) && preg_match("/Java\/[0-9\.]+/i", $_SERVER["HTTP_USER_AGENT"], $match)){
@@ -23,13 +23,13 @@
chdir($dir);
echo("Found PHP extensions-dir: " . $dir . ".\n");
- if (is_link($dir . "/knjphpframework")){
+ if (is_link($dir . "/knj")){
echo("Its already there - unlinking.\n");
- unlink($dir . "/knjphpframework");
+ unlink($dir . "/knj");
}
echo "Making symlink.\n";
- system("ln -s " . $dirunix . " knjphpframework");
+ system("ln -s " . $dirunix . " knj");
}
echo "\n\nDone.\n";
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit 0fa0c85

Please sign in to comment.