Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • tneumann9/PlanetRed
  • JSTUREK8/PlanetRed
  • smccoy12/PlanetRed
  • dkuzelka2/PlanetRed
  • s-cwiedel5/PlanetRed
  • dxg/PlanetRed
6 results
Show changes
Commits on Source (630)
Showing
with 307 additions and 0 deletions
# To use this script, you must have the following variables defined
# You can define them at the project or the group level
#
# SONAR_URL: Full URL to the SonarQube server
# SONAR_TOKEN: API token for SonarQube
stages:
- Security
- QA
Dependency Check:
stage: Security
image: its-registry.unl.edu/unl-its/docker-ci/dependency-check
tags:
- docker
cache:
policy: push
paths:
- dep_check
script:
- dependency-check -noupdate -f JSON -f XML -f HTML -s . -o ./dep_check --project "$CI_PROJECT_TITLE" --enableExperimental
SonarQube:
stage: QA
image: its-registry.unl.edu/unl-its/docker-ci/static-code-analysis:php
tags:
- docker
only:
- master
cache:
policy: pull
paths:
- dep_check
script:
- sonar-scanner -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_TOKEN
-Dsonar.projectKey=$CI_PROJECT_PATH_SLUG -Dsonar.projectName="$CI_PROJECT_TITLE"
-Dsonar.sources=.
-Dsonar.dependencyCheck.reportPath=./dep_check/dependency-check-report.xml
-Dsonar.dependencyCheck.jsonReportPath=./dep_check/dependency-check-report.json
-Dsonar.dependencyCheck.htmlReportPath=./dep_check/dependency-check-report.html
********
** How to set up UNL_Elgg:
********
Run the setup.sh script to symlink all the necessary plugins
./setup.sh
Create a mysql database named unl_social
Import the full_dump.sql file*
mysql -u root unl_social < full_dump.sql
Browse to the elgg directory in your web browser and do elgg's installation:
Create the local elgg/.htaccess file using the sample on the install page
Be sure to set the correct RewriteBase /workspace/UNL_Elgg/elgg/ for example.
Create the local elgg/engine/settings.php file.
Be sure to specify unl_social as the database name
Add this settings file to your svn:ignore list
Create a local directory named elgg_data for elgg to write to outside of the web root.
Change the permissions so Apache has write access to it.
sudo chown _www elgg_data
Install pear http://pear.php.net/manual/en/installation.getting.php
Install the UNL_Templates pear packages
pear channel-discover pear.unl.edu && pear install unl/UNL_Templates-beta unl/UNL_Services_Peoplefinder-beta DB
Set the correct site url within the unl_social database:
UPDATE elggsites_entity SET url='http://ucommbieber.unl.edu/workspace/UNL_Elgg/elgg/' WHERE guid=1;
UPDATE elggdatalists SET value = '/Users/bbieber/Documents/workspace/UNL_Elgg/elgg/' WHERE name = 'path';
UPDATE elggdatalists SET value = '/Users/bbieber/Documents/workspace/UNL_Elgg/elgg_data/' WHERE name = 'dataroot';
Make sure the local site has an updated copy of the unl templatedependents
******
** Troubleshooting
******
After navigating to the elgg dir in your browser and filling in the correct database info -
if you get the error that elgg can't connect to your database do this:
1. find your php.ini file, probably located at /etc/php.ini.default and rename it to php.ini
2. edit the mysql.default_socket line to include the path to your mysql.sock file, e.g.
mysql.default_socket = /private/tmp/mysql.sock
If the mobile site or the regular site starts pulling in the Absolute template rather than the specified template
you may need to set up a symbolic link for the wdn directory. The UNL_Templates package will
>> cd elgg/
>> ln -s /var/www/html/wdn wdn
*******
** Notes on importing data:
*******
****From here on out we will be dumping data from the live server to import on testing instances only. Changes on test
instances that modify database fields must be documented and repeated on the live server after testing.
full_dump.sql is is full copy of the mysql database that must be modified upon import.
safe_dump.sql can be imported without the need for modification
when importing full_dump.sql, you must modify certain rows in the tables elggdatalists and elggsites_entity so
that they pertain to the local elgg site instance. (so if you see something like
http://ucommjuhl.unl.edu/UNL_Elgg/elgg, change it!)
*******
** Notes on importing data for dev to local machine:
*******
-On 'live' machine: ftp a copy of the database to your machine
scp /backups/mysql/daily/unl_social/unl_social_2010-04-22_00h10m.Thursday.sql.gz usernameonlocalmachine@yourmachine.com:/Path/To/Transer/To
-On 'dev' machine: unzip it
gunzip unl_social_2010-04-22_00h10m.Thursday.sql.gz
-import it
mysql -u username -p < /Path/To/unl_social_2010-04-22_00h10m.Thursday.sql
-Set the correct site url within the unl_social database:
mysql -u username -p
use unl_social;
UPDATE elggsites_entity SET url='http://ucommmeranda.unl.edu/workspace/UNL_Elgg/elgg/' WHERE guid=1;
UPDATE elggdatalists SET value = '/Users/smeranda/Documents/workspace/UNL_Elgg/elgg/' WHERE name = 'path';
UPDATE elggdatalists SET value = '/Users/smeranda/Documents/workspace/UNL_Elgg/elgg_data/' WHERE name = 'dataroot';
-zip up elgg_data and ftp that
zip -r newfilename elgg_data
-replace your local copy of elgg_data with this one and make sure apache (could be _www or apache or ?) has write access to it
cd path/to/elgg_data
sudo chown -R _www *
*******
** Plugin info
*******
Just run the setup.sh script. If any plugins are added, add this to the setup.sh script.
*******
** Patches
*******
All patches are located in the /pathces directory. These include:
patches/check_page_owner_exists.diff * check that $page_owner is set or a non-existant profile returns 500 error (FIXED IN 1.7.4)
patches/relationship_get_set_public.diff *__get __set not declared correctly
patches/lowercase_post.diff *Forms use POST which doesn't validate
patches/strip_tags_name_field.diff *Display Name field allowed html that often was not escaped upon output
patches/add_closing_labels.diff
*******
** Things to look out for when new versions of Elgg are released
*******
-- Look at elgg's upgrade readme and look for changes to .htaccess
-- Are there changes to /elgg/actions/login.php and /elgg/actions/logout.php ?????
We have overridden those actions with our own in the cas_auth_unl plugin
*******
** Previous svn:externals prior to moving to git
*******
elgg http://code.elgg.org/elgg/tags/1.7.3/
# Our plugins/modules
elgg/mod/flexprofile http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/flexprofile
elgg/mod/form http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/form
elgg/mod/globe http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/globe
elgg/mod/putyourselfonthemap http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/putyourselfonthemap
elgg/mod/mass_mailouts http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/mass_mailouts
elgg/mod/cas_auth_unl http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/cas_auth_unl
elgg/mod/customindex http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/customindex
elgg/mod/unl_theme http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/unl_theme
elgg/mod/riverfaces http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/riverfaces
elgg/mod/friend_request http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/friend_request
elgg/mod/mobile http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/mobile
elgg/mod/mobile_unl http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/mobile_unl
elgg/mod/tidypics http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/tidypics
elgg/mod/au_group_notifications http://gforge.unl.edu/svn/unl_elgg/trunk/plugins/au_group_notifications
# (pulling from another repository)
elgg/featured/ http://gforge.unl.edu/svn/unl_huskers/trunk/
This diff is collapsed.
data/pluginorder.png

221 KiB

This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0"?>
<pearconfig version="1.0"><php_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/php</php_dir><ext_dir>/usr/local/lib/php/extensions/no-debug-non-zts-20090626/</ext_dir><cfg_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/cfg</cfg_dir><doc_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/docs</doc_dir><bin_dir>/usr/local/bin</bin_dir><data_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/data</data_dir><www_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/www</www_dir><test_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/tests</test_dir><src_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/src</src_dir><php_bin>/usr/local/bin/php</php_bin><php_ini>/usr/local/lib/php.ini</php_ini><php_prefix></php_prefix><php_suffix></php_suffix></pearconfig>
<?xml version="1.0"?>
<pearconfig version="1.0"><php_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/php</php_dir><ext_dir>/usr/local/lib/php/extensions/no-debug-non-zts-20090626/</ext_dir><cfg_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/cfg</cfg_dir><doc_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/docs</doc_dir><bin_dir>/Users/bbieber/workspace/UNL_Elgg/lib/bin</bin_dir><data_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/data</data_dir><www_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/www</www_dir><test_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/tests</test_dir><src_dir>/Users/bbieber/Documents/workspace/UNL_Elgg/lib/src</src_dir><php_bin>/usr/local/bin/php</php_bin><php_ini>/usr/local/lib/php.ini</php_ini><php_prefix></php_prefix><php_suffix></php_suffix></pearconfig>
<?xml version="1.0"?>
<pearconfig version="1.0"><php_dir>/Library/WebServer/Documents/workspace/UNL_Elgg/lib/php</php_dir><ext_dir>/usr/lib/php/extensions/no-debug-non-zts-20090626</ext_dir><cfg_dir>/Library/WebServer/Documents/workspace/UNL_Elgg/lib/cfg</cfg_dir><doc_dir>/Library/WebServer/Documents/workspace/UNL_Elgg/lib/docs</doc_dir><bin_dir>/usr/bin</bin_dir><data_dir>/Library/WebServer/Documents/workspace/UNL_Elgg/lib/data</data_dir><www_dir>/Library/WebServer/Documents/workspace/UNL_Elgg/lib/www</www_dir><test_dir>/Library/WebServer/Documents/workspace/UNL_Elgg/lib/tests</test_dir><src_dir>/Library/WebServer/Documents/workspace/UNL_Elgg/lib/src</src_dir><php_bin>/usr/bin/php</php_bin><php_ini>/private/etc/php.ini</php_ini><php_prefix></php_prefix><php_suffix></php_suffix></pearconfig>
File added
<?xml version="1.0" encoding="UTF-8"?>
<channel version="1.0" xmlns="http://pear.php.net/channel-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/channel-1.0http://pear.php.net/dtd/channel-1.0.xsd">
<name>__uri</name>
<suggestedalias>__uri</suggestedalias>
<summary>Pseudo-channel for static packages</summary>
<servers>
<primary>
<xmlrpc>
<function version="1.0">****</function>
</xmlrpc>
</primary>
</servers>
</channel>
<?xml version="1.0" encoding="UTF-8"?>
<channel version="1.0" xmlns="http://pear.php.net/channel-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/channel-1.0http://pear.php.net/dtd/channel-1.0.xsd">
<name>doc.php.net</name>
<summary>PHP Documentation team</summary>
<suggestedalias>phpdocs</suggestedalias>
<servers>
<primary>
<rest>
<baseurl type="REST1.0">http://doc.php.net/rest/</baseurl>
<baseurl type="REST1.1">http://doc.php.net/rest/</baseurl>
</rest>
</primary>
</servers>
</channel>
<?xml version="1.0" encoding="UTF-8"?>
<channel version="1.0" xmlns="http://pear.php.net/channel-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/channel-1.0http://pear.php.net/dtd/channel-1.0.xsd">
<name>pear.php.net</name>
<suggestedalias>pear</suggestedalias>
<summary>PHP Extension and Application Repository</summary>
<servers>
<primary>
<rest>
<baseurl type="REST1.0">http://pear.php.net/rest/</baseurl>
<baseurl type="REST1.1">http://pear.php.net/rest/</baseurl>
<baseurl type="REST1.2">http://pear.php.net/rest/</baseurl>
<baseurl type="REST1.3">http://pear.php.net/rest/</baseurl>
</rest>
</primary>
<mirror host="us.pear.php.net">
<rest>
<baseurl type="REST1.0">http://us.pear.php.net/rest/</baseurl>
<baseurl type="REST1.1">http://us.pear.php.net/rest/</baseurl>
<baseurl type="REST1.2">http://us.pear.php.net/rest/</baseurl>
<baseurl type="REST1.3">http://us.pear.php.net/rest/</baseurl>
</rest>
</mirror>
<mirror host="de.pear.php.net" ssl="yes" port="3452">
<rest>
<baseurl type="REST1.0">https://de.pear.php.net:3452/rest/</baseurl>
<baseurl type="REST1.1">https://de.pear.php.net:3452/rest/</baseurl>
<baseurl type="REST1.2">https://de.pear.php.net:3452/rest/</baseurl>
<baseurl type="REST1.3">https://de.pear.php.net:3452/rest/</baseurl>
</rest>
</mirror>
</servers>
</channel>
<?xml version="1.0" encoding="UTF-8"?>
<channel version="1.0" xmlns="http://pear.php.net/channel-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/channel-1.0http://pear.php.net/dtd/channel-1.0.xsd">
<name>pear.unl.edu</name>
<summary>UNL PHP Extension and Application Repository</summary>
<suggestedalias>unl</suggestedalias>
<servers>
<primary>
<rest>
<baseurl type="REST1.0">http://pear.unl.edu/Chiara_PEAR_Server_REST/</baseurl>
<baseurl type="REST1.1">http://pear.unl.edu/Chiara_PEAR_Server_REST/</baseurl>
<baseurl type="REST1.3">http://pear.unl.edu/Chiara_PEAR_Server_REST/</baseurl>
</rest>
</primary>
</servers>
</channel>
<?xml version="1.0" encoding="UTF-8"?>
<channel version="1.0" xmlns="http://pear.php.net/channel-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/channel-1.0http://pear.php.net/dtd/channel-1.0.xsd">
<name>pear2.php.net</name>
<suggestedalias>pear2</suggestedalias>
<summary>PEAR packages for PHP 5.3+ installed by Pyrus</summary>
<servers>
<primary>
<rest>
<baseurl type="REST1.0">http://pear2.php.net/rest/</baseurl>
<baseurl type="REST1.1">http://pear2.php.net/rest/</baseurl>
<baseurl type="REST1.2">http://pear2.php.net/rest/</baseurl>
<baseurl type="REST1.3">http://pear2.php.net/rest/</baseurl>
</rest>
</primary>
</servers>
</channel>
<?xml version="1.0" encoding="UTF-8"?>
<channel version="1.0" xmlns="http://pear.php.net/channel-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/channel-1.0http://pear.php.net/dtd/channel-1.0.xsd">
<name>pecl.php.net</name>
<suggestedalias>pecl</suggestedalias>
<summary>PHP Extension Community Library</summary>
<validatepackage version="1.0">PEAR_Validator_PECL</validatepackage>
<servers>
<primary>
<xmlrpc>
<function version="1.0">logintest</function>
<function version="1.0">package.listLatestReleases</function>
<function version="1.0">package.listAll</function>
<function version="1.0">package.info</function>
<function version="1.0">package.getDownloadURL</function>
<function version="1.0">package.getDepDownloadURL</function>
<function version="1.0">package.search</function>
<function version="1.0">channel.listAll</function>
</xmlrpc>
<rest>
<baseurl type="REST1.0">http://pecl.php.net/rest/</baseurl>
<baseurl type="REST1.1">http://pecl.php.net/rest/</baseurl>
</rest>
</primary>
</servers>
</channel>
<?xml version="1.0" encoding="UTF-8"?>
<channel version="1.0" xmlns="http://pear.php.net/channel-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/channel-1.0http://pear.php.net/dtd/channel-1.0.xsd">
<name>simplecas.googlecode.com/svn</name>
<suggestedalias>simplecas</suggestedalias>
<summary>simplecas</summary>
<servers>
<primary>
<rest>
<baseurl type="REST1.0">http://simplecas.googlecode.com/svn/rest/</baseurl>
<baseurl type="REST1.1">http://simplecas.googlecode.com/svn/rest/</baseurl>
<baseurl type="REST1.3">http://simplecas.googlecode.com/svn/rest/</baseurl>
</rest>
</primary>
</servers>
</channel>
__uri
\ No newline at end of file
pear.php.net
\ No newline at end of file