Browse Source

Make the pastebin work locally

pull/1/head
falkTX 11 years ago
parent
commit
1d496b5458
3 changed files with 15 additions and 6 deletions
  1. +1
    -1
      includes/header.php
  2. +4
    -2
      paste/download.php
  3. +10
    -3
      paste/index.php

+ 1
- 1
includes/header.php View File

@@ -1,7 +1,7 @@
<?php <?php
$SHOW_NOTE = TRUE; $SHOW_NOTE = TRUE;


/*if (file_exists("/home/falktx/FOSS/GIT-mine/kxstudio-web"))
/*if (file_exists("/var/www/kxstudio/paste/"))
{ {
$ROOT = "/kxstudio"; $ROOT = "/kxstudio";
$SHOW_NOTE = FALSE; $SHOW_NOTE = FALSE;


+ 4
- 2
paste/download.php View File

@@ -1,7 +1,9 @@
<?php <?php


$base_dir = "/home/groups/k/kx/kxstudio/htdocs/paste/";
// $base_dir = "/var/www/falktx/kxstudio-new/paste/";
if (file_exists("/var/www/kxstudio/paste/"))
$base_dir = "/var/www/kxstudio/paste/";
else
$base_dir = "/home/groups/k/kx/kxstudio/htdocs/paste/";


function downloadFile($fullPath) { function downloadFile($fullPath) {
// Must be fresh start // Must be fresh start


+ 10
- 3
paste/index.php View File

@@ -1,10 +1,17 @@
<?php <?php
include_once("geshi.php"); include_once("geshi.php");


$ROOT = "";
if (file_exists("/var/www/kxstudio/paste/"))
{
$server_dir = "/paste/";
$base_dir = "/var/www/kxstudio/paste/";
}
else
{
$server_dir = "/paste/";
$base_dir = "/home/groups/k/kx/kxstudio/htdocs/paste/";
}


$server_dir = "/paste/";
$base_dir = "/home/groups/k/kx/kxstudio/htdocs/paste/";
$show_paste = FALSE; $show_paste = FALSE;
$show_numbers = FALSE; $show_numbers = FALSE;
$is_error = FALSE; $is_error = FALSE;


Loading…
Cancel
Save